Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor edits #584

Merged
merged 7 commits into from
Dec 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Authors

# Core Developers
----------
- Sepand Haghighi - Open Science Laboratory ([Github](https://github.com/sepandhaghighi)) **
- Alireza Zolanvari - Open Science Laboratory ([Github](https://github.com/AlirezaZolanvari)) **
Expand All @@ -11,10 +10,11 @@

# Other Contributors
----------
- [Sohee Yang](https://github.com/soheeyang)
- [Mohammad Mahdi Rahimi](https://github.com/mahi97)
- [Christian Clauss](https://github.com/cclauss)
- [Negar Zabetian](https://github.com/negarzabetian)
- [Ashwin Geet D'Sa](https://github.com/GeetDsa)
- [Ilya Gubins](https://github.com/the-lay)
- [Lewi Uberg](https://github.com/lewiuberg)
- [@soheeyang](https://github.com/soheeyang)
- [@mahi97](https://github.com/mahi97)
- [@cclauss](https://github.com/cclauss)
- [@negarzabetian](https://github.com/negarzabetian)
- [@GeetDsa](https://github.com/GeetDsa)
- [@the-lay](https://github.com/the-lay)
- [@lewiuberg](https://github.com/lewiuberg)
- [@AHReccese](https://github.com/AHReccese)
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Changed
- PyPI badge in `README.md`
- GitHub actions are limited to the `dev` and `master` branches
- `AUTHORS.md` updated
- `README.md` modified
- Document modified
## [4.1] - 2024-10-17
### Added
- 5 new distance/similarity
Expand Down
10 changes: 5 additions & 5 deletions Document/Distance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,7 @@
"source": [
"$$corr_{KuhnsIII} =\n",
"\\frac{\\delta(TP + FP, TP + FN)}\n",
"{(1-\\frac{TP}{2 \\times TP + FP + FN})(2 \\times TP + FP + FN-\\frac{(TP + FP)(TP + FN)}{n})}\n",
"{(1-\\frac{TP}{2 \\times TP + FP + FN})(2 \\times TP + FP + FN-\\frac{(TP + FP)(TP + FN)}{N})}\n",
"$$\n",
"\n",
"$$\n",
Expand Down Expand Up @@ -3179,7 +3179,7 @@
"source": [
"$$corr_{KuhnsV} =\n",
"\\frac{\\delta(TP + FP, TP + FN)}\n",
"{\\max((TP+FP)(1-\\frac{TP+FP}{n}), (TP+FN)(1-\\frac{TP+FN}{n}))}\n",
"{\\max((TP+FP)(1-\\frac{TP+FP}{N}), (TP+FN)(1-\\frac{TP+FN}{N}))}\n",
"$$\n",
"\n",
"$$\n",
Expand Down Expand Up @@ -3236,7 +3236,7 @@
"source": [
"$$corr_{KuhnsVI} =\n",
"\\frac{\\delta(TP + FP, TP + FN)}\n",
"{\\min((TP+FP)(1-\\frac{TP+FP}{n}), (TP+FN)(1-\\frac{TP+FN}{n}))}\n",
"{\\min((TP+FP)(1-\\frac{TP+FP}{N}), (TP+FN)(1-\\frac{TP+FN}{N}))}\n",
"$$\n",
"\n",
"$$\n",
Expand Down Expand Up @@ -3425,7 +3425,7 @@
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -3439,7 +3439,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.5.2"
},
"toc": {
"base_numbering": 1,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<h1>PyCM: Python Confusion Matrix</h1>
<br/>
<a href="https://www.python.org/"><img src="https://img.shields.io/badge/built%20with-Python3-green.svg" alt="built with Python3"></a>
<a href="https://github.com/sepandhaghighi/pycm"><img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/sepandhaghighi/pycm"></a>
<a href="/Document"><img src="https://img.shields.io/badge/doc-latest-orange.svg"></a>
<a href="https://codecov.io/gh/sepandhaghighi/pycm"><img src="https://codecov.io/gh/sepandhaghighi/pycm/branch/master/graph/badge.svg"></a>
<a href="https://badge.fury.io/py/pycm"><img src="https://badge.fury.io/py/pycm.svg" alt="PyPI version" height="18"></a>
<a href="https://badge.fury.io/py/pycm"><img src="https://badge.fury.io/py/pycm.svg" alt="PyPI version"></a>
<a href="https://anaconda.org/sepandhaghighi/pycm"><img src="https://anaconda.org/sepandhaghighi/pycm/badges/version.svg"></a>
<a href="https://colab.research.google.com/github/sepandhaghighi/pycm/blob/master"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Document"></a>
<a href="https://discord.com/invite/zqpU2b3J3f"><img src="https://img.shields.io/discord/901883546162065408.svg" alt="Discord Channel"></a>
Expand Down
2 changes: 1 addition & 1 deletion pycm/distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ def KuhnsVII_calc(TP, FP, FN, TN):
:type FP: int
:param FN: false negative
:type FN: int
:return: Kuhns VI correlation as float
:return: Kuhns VII correlation as float
"""
try:
n = TP + FP + FN + TN
Expand Down