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

Version 3.4 #420

Merged
merged 171 commits into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
63c0539
Bump numpy from 1.21.2 to 1.21.3
dependabot[bot] Oct 27, 2021
c83abae
Merge pull request #396 from sepandhaghighi/dependabot/pip/dev/numpy-…
sepandhaghighi Oct 27, 2021
4728d9f
add : colab badge added to README.md. (#389)
sadrasabouri Oct 29, 2021
a0dc318
log : changes logged.
sadrasabouri Oct 29, 2021
36a1c69
update : Document readme updated.
sadrasabouri Oct 30, 2021
51b9caf
update : README.md updated.
sadrasabouri Oct 30, 2021
afab84f
add : discord badge added. (#397)
sadrasabouri Oct 30, 2021
4a86a7d
log : changes logged.
sadrasabouri Oct 30, 2021
8560dda
update : README.md updated.
sadrasabouri Oct 31, 2021
a05224f
update : Issues and bug section updated.
sadrasabouri Nov 2, 2021
cd76b42
edit : discord badge --> discord invite link.
sadrasabouri Nov 2, 2021
82a9405
doc : colab script added to Document
sepandhaghighi Nov 13, 2021
0238fd2
Merge pull request #398 from sadrasabouri/dev-sadra
sadrasabouri Nov 14, 2021
be30f21
Bump numpy from 1.21.3 to 1.21.4
dependabot[bot] Nov 15, 2021
303c589
Merge pull request #400 from sepandhaghighi/dependabot/pip/dev/numpy-…
sepandhaghighi Nov 15, 2021
f21c235
fix : Python 3.10 added to test.yml #391
sepandhaghighi Nov 15, 2021
de723c0
doc : CHANGELOG updated #391
sepandhaghighi Nov 15, 2021
aa5403e
fix : Python 3.10 added to setup.py #391
sepandhaghighi Nov 15, 2021
afaef11
Merge pull request #403 from sepandhaghighi/python3.10
sadrasabouri Nov 15, 2021
ddb138f
doc : Compare example updated
sepandhaghighi Nov 17, 2021
1184920
doc : Acceptable data types section updated
sepandhaghighi Nov 17, 2021
1a9194c
doc : docker section removed from Document
sepandhaghighi Nov 17, 2021
96a2fdb
doc : license section removed
sepandhaghighi Nov 17, 2021
53e2279
doc : donation section updated
sepandhaghighi Nov 17, 2021
bec9986
fix : minor edit in plot test
sepandhaghighi Nov 17, 2021
618128b
fix : minor edit in plot test
sepandhaghighi Nov 17, 2021
04cb9e6
fix : minor edit in plot test
sepandhaghighi Nov 17, 2021
4c771aa
fix : minor edit in plot test
sepandhaghighi Nov 17, 2021
d4c830d
doc : trailing white spaces removed
sepandhaghighi Nov 18, 2021
b4cb598
Merge pull request #404 from sepandhaghighi/minor_edits
sadrasabouri Nov 18, 2021
0db90b1
improve docstring #345
alirezazolanvari Nov 25, 2021
69f4cf3
improve docstring #345
alirezazolanvari Nov 25, 2021
2c07d78
improve docstring #345
alirezazolanvari Nov 25, 2021
5ab71e1
improve docstring #345
alirezazolanvari Nov 25, 2021
bcfa61c
improve docstring #345
alirezazolanvari Nov 25, 2021
fe9cf1c
improve docstring #345
alirezazolanvari Nov 26, 2021
58f5e58
improve docstring #345
alirezazolanvari Nov 26, 2021
07418a3
improve docstring #345
alirezazolanvari Nov 26, 2021
44fb6e5
improve docstring #345
alirezazolanvari Nov 27, 2021
a1937fd
improve docstring #345
alirezazolanvari Nov 27, 2021
dd79109
improve docstring #345
alirezazolanvari Nov 27, 2021
27ff3e8
improve docstring #345
alirezazolanvari Nov 27, 2021
0f7d6b7
update : Example3 updated. (#405)
sadrasabouri Nov 27, 2021
2fde5a3
improve docstring #345
alirezazolanvari Nov 27, 2021
2ceac7b
improve docstring #345
alirezazolanvari Nov 27, 2021
313025c
improve docstring #345
alirezazolanvari Nov 27, 2021
22c3f1a
improve docstring #345
alirezazolanvari Nov 27, 2021
9e4df0c
improve docstring #345
alirezazolanvari Nov 27, 2021
9623d0b
doc : Example3 updated #405
sepandhaghighi Nov 28, 2021
9f2164e
doc : CHANGELOG updated #405
sepandhaghighi Nov 28, 2021
1de0428
doc : minor edit in Example3 #405
sepandhaghighi Nov 28, 2021
9f2b783
Bump numpy from 1.21.1 to 1.21.2
dependabot[bot] Aug 24, 2021
6ede40a
doc : Document updated #276
sepandhaghighi Aug 28, 2021
0f92f4e
doc : CHANGELOG updated #276
sepandhaghighi Aug 28, 2021
78fc23c
doc : Document updated #384
sepandhaghighi Aug 29, 2021
cd8ce57
Bump art from 5.2 to 5.3
dependabot[bot] Sep 6, 2021
665c85c
fix : compare weight renamed to class_weight #347
sepandhaghighi Sep 12, 2021
a388541
fix : COMPARE_WEIGHT_ERROR renamed to COMPARE_CLASS_WEIGHT_ERROR #347
sepandhaghighi Sep 12, 2021
1c1bd71
fix : minor edit in __compare_assign_handler__ #347
sepandhaghighi Sep 12, 2021
43f6115
fix : minor edit in __compare_class_handler__ #347
sepandhaghighi Sep 12, 2021
14e5211
fix : compare tests updated #347
sepandhaghighi Sep 12, 2021
dfd47a6
fix : error tests updated #347
sepandhaghighi Sep 12, 2021
0d4340f
doc : CHANGELOG updated
sepandhaghighi Sep 12, 2021
84c54cd
fix : error tests updated #347
sepandhaghighi Sep 12, 2021
3b3e57c
doc : Document updated #347
sepandhaghighi Sep 12, 2021
c3e5321
fix : compare example updated #347
sepandhaghighi Sep 12, 2021
aa75d59
fix : compare tests updated
sepandhaghighi Sep 12, 2021
95151b8
fix : autopep8 #386
sepandhaghighi Sep 13, 2021
7c98fa1
fix : COMPARE_CLASS_WEIGHT_WARNING added #386
sepandhaghighi Sep 25, 2021
ce4b4c6
fix : compare test updated #386
sepandhaghighi Sep 25, 2021
7601c5a
fix : autopep8 #386
sepandhaghighi Sep 26, 2021
3d8876f
feat : overall_benchmark_weight and class_benchmark_weight added to C…
sepandhaghighi Oct 10, 2021
fb453f7
fix : minor edit in __compare_assign_handler__ function #347
sepandhaghighi Oct 10, 2021
47400d2
fix : __compare_weight_handler__ function added #347
sepandhaghighi Oct 10, 2021
1475688
fix : new warning and error messages added #347
sepandhaghighi Oct 10, 2021
d1965c9
fix : minor bug in Compare fixed #347
sepandhaghighi Oct 10, 2021
d30c735
fix : minor bug in Compare fixed #347
sepandhaghighi Oct 10, 2021
46f4c67
fix : tests updated #347
sepandhaghighi Oct 10, 2021
e4736c8
fix : OVERALL_BENCHMARK_SCORE_DICT updated #347
sepandhaghighi Oct 10, 2021
fea8a1d
fix : tests updated #347
sepandhaghighi Oct 10, 2021
98c4e49
doc : CHANGELOG updated #347
sepandhaghighi Oct 10, 2021
9c0ba21
fix : minor bug in tests fixed #347
sepandhaghighi Oct 10, 2021
e094311
doc : Document updated #347
sepandhaghighi Oct 10, 2021
a133239
fix : CLASS_BENCHMARK_LIST and OVERALL_BENCHMARK_LIST added #347
sepandhaghighi Oct 11, 2021
ebe92d9
fix : __init__ updated #347
sepandhaghighi Oct 11, 2021
2e9b014
fix : minor edit in __compare_assign_handler__function #347
sepandhaghighi Oct 11, 2021
6362125
fix : tests updated #347
sepandhaghighi Oct 11, 2021
ea9c1f9
doc : Document updated #347
sepandhaghighi Oct 11, 2021
16163a6
fix : autopep8 #347
sepandhaghighi Oct 11, 2021
8790679
fix : minor edit in test alignment #388
sepandhaghighi Oct 15, 2021
e141597
fix : __compare_weight_handler__ function modified #388
sepandhaghighi Oct 15, 2021
952a151
doc : Document updated #388
sepandhaghighi Oct 15, 2021
531bd04
doc : LICENSE updated
sepandhaghighi Oct 16, 2021
46de53b
doc : AUTHORS.md updated
sepandhaghighi Oct 16, 2021
ca9012f
doc : CHANGELOG updated
sepandhaghighi Oct 16, 2021
8ba9137
doc : diagram_flo_files folder added
sepandhaghighi Oct 17, 2021
b0bf9ab
doc : block diagrams updated
sepandhaghighi Oct 17, 2021
ede055a
doc : CHANGELOG updated
sepandhaghighi Oct 17, 2021
5931559
fix : pepy link fixed
sepandhaghighi Oct 18, 2021
99deab6
doc : docker section removed from README
sepandhaghighi Oct 18, 2021
6c0c6d9
doc : CHANGELOG updated
sepandhaghighi Oct 18, 2021
c6a7d13
rel : migrate to version 3.3
sepandhaghighi Oct 23, 2021
92f693a
Document updated for version 3.3
sepandhaghighi Oct 23, 2021
78e9df2
improve docstring #345
alirezazolanvari Nov 25, 2021
d736d2c
improve docstring #345
alirezazolanvari Nov 25, 2021
ffb28b5
improve docstring #345
alirezazolanvari Nov 25, 2021
f4d6814
improve docstring #345
alirezazolanvari Nov 25, 2021
adbb61a
improve docstring #345
alirezazolanvari Nov 25, 2021
0079a97
improve docstring #345
alirezazolanvari Nov 26, 2021
c4690aa
improve docstring #345
alirezazolanvari Nov 26, 2021
d3372ec
improve docstring #345
alirezazolanvari Nov 26, 2021
6e69b6f
improve docstring #345
alirezazolanvari Nov 27, 2021
845f006
improve docstring #345
alirezazolanvari Nov 27, 2021
c71663e
improve docstring #345
alirezazolanvari Nov 27, 2021
6c3b525
improve docstring #345
alirezazolanvari Nov 27, 2021
1db0e75
improve docstring #345
alirezazolanvari Nov 27, 2021
faab5d9
improve docstring #345
alirezazolanvari Nov 27, 2021
cb20f1b
improve docstring #345
alirezazolanvari Nov 27, 2021
e5de3d6
improve docstring #345
alirezazolanvari Nov 27, 2021
e5fdcbc
improve docstring #345
alirezazolanvari Nov 27, 2021
247b7c9
Merge branch 'doc_str' of https://github.com/sepandhaghighi/pycm into…
alirezazolanvari Nov 28, 2021
01f610c
Merge pull request #406 from sepandhaghighi/example3_update
alirezazolanvari Nov 28, 2021
b8a3d44
Merge branch 'dev' of https://github.com/sepandhaghighi/pycm into doc…
alirezazolanvari Nov 28, 2021
179a05a
two line description
alirezazolanvari Nov 28, 2021
5eca117
two line description
alirezazolanvari Nov 28, 2021
536eb84
two line description
alirezazolanvari Nov 28, 2021
f9c1642
resolve PR comments
alirezazolanvari Nov 29, 2021
e8ba144
resolve PR comments
alirezazolanvari Nov 29, 2021
1542c89
resolve PR comments
alirezazolanvari Nov 29, 2021
720e85b
resolve PR comments
alirezazolanvari Nov 29, 2021
7e37ec4
resolve PR comments
alirezazolanvari Nov 29, 2021
c60bec1
resolve PR comments
alirezazolanvari Nov 29, 2021
0704f95
resolve PR comments
alirezazolanvari Nov 29, 2021
94286df
resolve PR comments #345
alirezazolanvari Dec 8, 2021
50aeedf
resolve PR comments #345
alirezazolanvari Dec 8, 2021
5e4a41d
resolve PR comments #345
alirezazolanvari Dec 8, 2021
213d145
resolve PR comments #345
alirezazolanvari Dec 8, 2021
de30c4f
resolve PR comments #345
alirezazolanvari Dec 8, 2021
d615942
resolve PR comments #345
alirezazolanvari Dec 8, 2021
95c0b8f
resolve PR comments #345
alirezazolanvari Dec 8, 2021
850aac6
resolve PR comments #345
alirezazolanvari Dec 8, 2021
955c456
update changelog #407
alirezazolanvari Dec 9, 2021
fa519b3
add docstr template
alirezazolanvari Dec 12, 2021
156e998
minor edit
alirezazolanvari Dec 12, 2021
59c79ce
doc : Document updated #407
sepandhaghighi Dec 16, 2021
7f5f6f3
doc : minor bug in CONTRIBUTING.md fixed
sepandhaghighi Dec 17, 2021
0977b6d
doc : CHANGELOG updated
sepandhaghighi Dec 17, 2021
77ede75
doc : minor bug in CONTRIBUTING.md fixed
sepandhaghighi Dec 17, 2021
266ffe7
Merge pull request #407 from sepandhaghighi/doc_str
sepandhaghighi Dec 17, 2021
ce925e1
Create CITATION.cff
lewiuberg Dec 19, 2021
e3a0288
add : F* reference added.
sadrasabouri Dec 19, 2021
51ca09d
log : F* changes logged. (#401)
sadrasabouri Dec 19, 2021
0b7d0f1
add : F* added to Jaccard Index section in Document.ipynb.
sadrasabouri Dec 19, 2021
2e68c0b
fix : " issue fixed in Document.ipynb.
sadrasabouri Dec 19, 2021
e6c1401
Add Lewi Uberg to AUTHORS.md
lewiuberg Dec 19, 2021
6eafad2
update CITATION.cff article authors and orcid
lewiuberg Dec 19, 2021
7a7a95b
Merge pull request #411 from lewiuberg/master
sepandhaghighi Dec 19, 2021
71a4e1b
log : changes logged.
sadrasabouri Dec 20, 2021
847a26a
fix : citation fixed.
sadrasabouri Dec 20, 2021
31e30b4
Merge pull request #410 from sadrasabouri/dev
sepandhaghighi Dec 20, 2021
0873cbe
Bump numpy from 1.21.4 to 1.21.5
dependabot[bot] Dec 20, 2021
c474184
Merge pull request #414 from sepandhaghighi/dependabot/pip/dev/numpy-…
sepandhaghighi Dec 21, 2021
28f5794
Bump art from 5.3 to 5.4
dependabot[bot] Dec 27, 2021
d7327ce
Merge pull request #415 from sepandhaghighi/dependabot/pip/dev/art-5.4
sepandhaghighi Jan 3, 2022
999dc8d
Bump numpy from 1.21.5 to 1.22.0
dependabot[bot] Jan 3, 2022
36cefef
Merge pull request #416 from sepandhaghighi/dependabot/pip/dev/numpy-…
sepandhaghighi Jan 4, 2022
4e6f686
Brier score (#417)
sepandhaghighi Jan 18, 2022
db4adc1
Bump numpy from 1.22.0 to 1.22.1
dependabot[bot] Jan 18, 2022
e368761
Merge pull request #418 from sepandhaghighi/dependabot/pip/dev/numpy-…
sepandhaghighi Jan 18, 2022
10b214b
Doc str (#419)
alirezazolanvari Jan 23, 2022
a7d599f
rel : migrate to version 3.4
sepandhaghighi Jan 24, 2022
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
21 changes: 19 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Please consider the following :
- To add a new class statistic visit [here](#class-statistic)
- To add a new overall statistic visit [here](#overall-statistic)
- To add a new interpretation visit [here](#interpretation)
4. Add standard `docstring` to your functions/methods
4. Add standard `docstring` to your functions/methods according to the [standard format](#standard-docstring-format)
5. Add tests for your functions/methods (`doctest`, `Test` folder)
6. Update `README.md` (if needed)
7. Update `Document.ipynb` (if needed)
Expand Down Expand Up @@ -80,4 +80,21 @@ Please consider the following :
- Update `OVERALL_BENCHMARK_SCORE_DICT` in `pycm_param.py`
6. Add tests to `compare_test.py`, `overall_test.py` and `function_test.py` in `TEST` folder
- If you have any verified test add them to `verified_test.py`
7. Run `autopep8.bat`/`autopep8.sh` (*Optional*, need to install latest version of `autopep8` package)
7. Run `autopep8.bat`/`autopep8.sh` (*Optional*, need to install latest version of `autopep8` package)

## Standard docstring format
Here, the `docstring` format mainly follows the PEP suggested structure. Note the following items
- Start the `docstring` description with uppercase letter and end it with a dot
- All other descriptions should be written in lowercase (unless exceptions)
- Declare the abbreviations before using them

Example:

def DF_calc(classes):
"""
Calculate Chi-squared degree of freedom (DF).

:param classes: confusion matrix classes
:type classes: list
:return: DF as int
"""
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, 3.10.0]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@
- [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)
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [3.4] - 2022-01-26
### Added
- Colab badge
- Discord badge
- `brier_score` method
### Changed
- `J (Jaccard index)` section in `Document.ipynb` updated
- `save_obj` method updated
- `Python 3.10` added to `test.yml`
- Example-3 updated
- Docstrings of the functions updated
- `CONTRIBUTING.md` updated
## [3.3] - 2021-10-27
### Added
- `__compare_weight_handler__` function
Expand Down Expand Up @@ -557,7 +569,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- TPR
- documents and `README.md`

[Unreleased]: https://github.com/sepandhaghighi/pycm/compare/v3.3...dev
[Unreleased]: https://github.com/sepandhaghighi/pycm/compare/v3.4...dev
[3.4]: https://github.com/sepandhaghighi/pycm/compare/v3.3...v3.4
[3.3]: https://github.com/sepandhaghighi/pycm/compare/v3.2...v3.3
[3.2]: https://github.com/sepandhaghighi/pycm/compare/v3.1...v3.2
[3.1]: https://github.com/sepandhaghighi/pycm/compare/v3.0...v3.1
Expand Down
45 changes: 45 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
title: "pycm"
abstract: "PyCM is a multi-class confusion matrix library written in Python that supports both input data vectors and direct matrix, and a proper tool for post-classification model evaluation that supports most classes and overall statistics parameters. PyCM is the swiss-army knife of confusion matrices, targeted mainly at data scientists that need a broad array of metrics for predictive models and accurate evaluation of a large variety of classifiers."
authors:
- family-names: "Haghighi"
given-names: "Sepand"
- family-names: "Zolanvari"
given-names: "Alireza"
- family-names: "Sabouri"
given-names: "Sadra"
version: 3.3
date-released: 2021-10-27
repository-code: "https://github.com/sepandhaghighi/pycm"
url: "https://www.pycm.ir"
license: MIT
keywords:
- "confusion matrix"
- "python"
- "F-score"
- "Accuracy"
preferred-citation:
type: article
authors:
- family-names: "Haghighi"
given-names: "Sepand"
orcid: "https://orcid.org/0000-0001-9450-2375"
- family-names: "Jasemi"
given-names: "Masoomeh"
orcid: "https://orcid.org/0000-0002-4831-1698"
- family-names: "Hessabi"
given-names: "Shaahin"
orcid: "https://orcid.org/0000-0003-3193-2567"
- family-names: "Zolanvari"
given-names: "Alireza"
orcid: "https://orcid.org/0000-0003-2367-8343"
doi: "10.21105/joss.00729"
journal: "Journal of Open Source Software"
month: 5
start: 729 # First page number
end: 729 # Last page number
title: "PyCM: Multiclass confusion matrix library in Python"
issue: 25
volume: 3
year: 2018
Loading