PerMetrics
PerMetrics: A Framework of Performance Metrics for Machine Learning Models - Published in JOSS (2024)
Science Score: 100.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 8 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org, zenodo.org -
✓Committers with academic emails
1 of 5 committers (20.0%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
Keywords from Contributors
Scientific Fields
Repository
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
Basic Info
- Host: GitHub
- Owner: thieu1995
- License: gpl-3.0
- Language: Python
- Default Branch: master
- Homepage: https://permetrics.readthedocs.io/en/latest/
- Size: 2.36 MB
Statistics
- Stars: 80
- Watchers: 3
- Forks: 19
- Open Issues: 6
- Releases: 24
Topics
Metadata Files
README.md
PerMetrics is a python library for performance metrics of machine learning models. We aim to implement all performance metrics for problems such as regression, classification, clustering, ... problems. Helping users in all field access metrics as fast as possible. The number of available metrics include 111 (47 regression metrics, 20 classification metrics, 44 clustering metrics)
Citation Request
Please include these citations if you plan to use this library:
- LaTeX:
bibtex
@article{Thieu_PerMetrics_A_Framework_2024,
author = {Thieu, Nguyen Van},
doi = {10.21105/joss.06143},
journal = {Journal of Open Source Software},
month = mar,
number = {95},
pages = {6143},
title = {{PerMetrics: A Framework of Performance Metrics for Machine Learning Models}},
url = {https://joss.theoj.org/papers/10.21105/joss.06143},
volume = {9},
year = {2024}
}
- APA:
Thieu, N. V. (2024). PerMetrics: A Framework of Performance Metrics for Machine Learning Models. Journal of Open Source Software, 9(95), 6143. https://doi.org/10.21105/joss.06143
Installation
Install the current PyPI release:
sh
$ pip install permetrics
After installation, you can import Permetrics as any other Python module:
```sh $ python
import permetrics permetrics.version ```
Example
Below is the most efficient and effective way to use this library compared to other libraries. The example below returns the values of metrics such as root mean squared error, mean absolute error...
```python from permetrics import RegressionMetric
ytrue = [3, -0.5, 2, 7] ypred = [2.5, 0.0, 2, 8]
evaluator = RegressionMetric(ytrue, ypred) results = evaluator.getmetricsbylistnames(["RMSE", "MAE", "MAPE", "R2", "NSE", "KGE"]) print(results["RMSE"]) print(results["KGE"]) ```
In case your ytrue and ypred data have multiple columns, and you want to return multiple outputs, something that other libraries cannot do, you can do it in Permetrics as follows:
```python import numpy as np from permetrics import RegressionMetric
ytrue = np.array([[0.5, 1], [-1, 1], [7, -6]]) ypred = np.array([[0, 2], [-1, 2], [8, -5]])
evaluator = RegressionMetric(ytrue, ypred)
The 1st way
results = evaluator.getmetricsbydict({ "RMSE": {"multioutput": "rawvalues"}, "MAE": {"multioutput": "rawvalues"}, "MAPE": {"multioutput": "raw_values"}, })
The 2nd way
results = evaluator.getmetricsbylistnames( listmetricnames=["RMSE", "MAE", "MAPE", "R2", "NSE", "KGE"], listparas=[{"multioutput": "raw_values"},] * 6 )
The 3rd way
result01 = evaluator.RMSE(multioutput="rawvalues") result02 = evaluator.MAE(multioutput="rawvalues") ```
The more complicated cases in the folder: examples. You can also read the documentation for more detailed installation instructions, explanations, and examples.
Contributing
There are lots of ways how you can contribute to Permetrics's development, and you are welcome to join in! For example, you can report problems or make feature requests on the issues pages. To facilitate contributions, please check for the guidelines in the CONTRIBUTING.md file.
Official channels
- Official source code repository
- Official document
- Download releases
- Issue tracker
- Notable changes log
- Official discussion group
Note
- Currently, there is a huge misunderstanding among frameworks around the world about the notation of R, R2, and R^2.
Please read the file R-R2-Rsquared.docx to understand the differences between them and why there is such confusion.
My recommendation is to denote the Coefficient of Determination as COD or R2, while the squared Pearson's Correlation Coefficient should be denoted as R^2 or RSQ (as in Excel software).
Developed by: Thieu @ 2023
Owner
- Name: Nguyen Van Thieu
- Login: thieu1995
- Kind: user
- Location: Earth
- Company: AIIR Group
- Website: https://thieu1995.github.io/
- Repositories: 13
- Profile: https://github.com/thieu1995
Knowledge is power, sharing it is the premise of progress in life. It seems like a burden to someone, but it is the only way to achieve immortality.
JOSS Publication
PerMetrics: A Framework of Performance Metrics for Machine Learning Models
Authors
Tags
model assessment tools performance metrics classification validation metrics regression evaluation criteria clustering criterion indices machine learning metricsCitation (CITATION.cff)
cff-version: "1.2.0"
authors:
- family-names: Thieu
given-names: Nguyen Van
orcid: "https://orcid.org/0000-0001-9994-8747"
doi: 10.5281/zenodo.3951205
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Thieu
given-names: Nguyen Van
orcid: "https://orcid.org/0000-0001-9994-8747"
date-published: 2024-03-09
doi: 10.21105/joss.06143
issn: 2475-9066
issue: 95
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 6143
title: "PerMetrics: A Framework of Performance Metrics for Machine
Learning Models"
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.06143"
volume: 9
title: "PerMetrics: A Framework of Performance Metrics for Machine
Learning Models"
GitHub Events
Total
- Issues event: 2
- Watch event: 9
- Issue comment event: 1
- Fork event: 2
Last Year
- Issues event: 2
- Watch event: 9
- Issue comment event: 1
- Fork event: 2
Committers
Last synced: 5 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Thieu Nguyen | n****2@g****m | 434 |
| Thieu | t****n@p****n | 15 |
| Matthias Quinn | m****n@y****m | 12 |
| dependabot[bot] | 4****] | 1 |
| Gabby | a****a@g****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 7
- Total pull requests: 4
- Average time to close issues: 5 months
- Average time to close pull requests: 14 days
- Total issue authors: 6
- Total pull request authors: 2
- Average comments per issue: 1.0
- Average comments per pull request: 0.25
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 3
Past Year
- Issues: 2
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 2
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- N3uralN3twork (2)
- 321HG (1)
- kunzrp (1)
- chris-fj (1)
- NamitaBajpai (1)
- wasf84 (1)
Pull Request Authors
- dependabot[bot] (4)
- galessiorob (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 14
-
Total downloads:
- pypi 28,159 last-month
-
Total dependent packages: 8
(may contain duplicates) -
Total dependent repositories: 1
(may contain duplicates) - Total versions: 53
- Total maintainers: 2
pypi.org: permetrics
PerMetrics: A Framework of Performance Metrics for Machine Learning Models
- Homepage: https://github.com/thieu1995/permetrics
- Documentation: https://mafese.readthedocs.io/
- License: GPLv3
-
Latest release: 2.0.0
published almost 2 years ago
Rankings
Maintainers (1)
alpine-v3.18: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 1.3.3-r1
published over 2 years ago
Rankings
Maintainers (1)
alpine-v3.18: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 1.3.3-r1
published over 2 years ago
Rankings
Maintainers (1)
alpine-edge: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0
-
Latest release: 2.0.0-r2
published 8 months ago
Rankings
Maintainers (1)
alpine-edge: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0
-
Latest release: 2.0.0-r2
published 8 months ago
Rankings
Maintainers (1)
alpine-v3.17: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 1.3.1-r1
published about 3 years ago
Rankings
Maintainers (1)
alpine-v3.21: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 2.0.0-r1
published over 1 year ago
Rankings
Maintainers (1)
alpine-v3.21: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 2.0.0-r1
published over 1 year ago
Rankings
Maintainers (1)
alpine-v3.22: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0
-
Latest release: 2.0.0-r2
published 8 months ago
Rankings
Maintainers (1)
alpine-v3.20: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 2.0.0-r1
published over 1 year ago
Rankings
Maintainers (1)
alpine-v3.19: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 1.5.0-r1
published over 2 years ago
Rankings
Maintainers (1)
alpine-v3.22: py3-permetrics
Artificial intelligence (AI, ML, DL) performance metrics implemented in Python
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0
-
Latest release: 2.0.0-r2
published 8 months ago
Rankings
Maintainers (1)
alpine-v3.19: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 1.5.0-r1
published over 2 years ago
Rankings
Maintainers (1)
alpine-v3.20: py3-permetrics-pyc
Precompiled Python bytecode for py3-permetrics
- Homepage: https://github.com/thieu1995/permetrics
- License: Apache-2.0 license
-
Latest release: 2.0.0-r1
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- numpy ==1.15.1
- readthedocs-sphinx-search ==0.1.1
- sphinx ==4.4.0
- sphinx_rtd_theme ==1.0.0
- numpy >=1.15.1
- actions/checkout v3 composite
- actions/upload-artifact v1 composite
- openjournals/openjournals-draft-action master composite
- stefanzweifel/git-auto-commit-action v4 composite
- actions/cache v1 composite
- actions/checkout v1 composite
- actions/download-artifact v2 composite
- actions/setup-python v1 composite
- actions/upload-artifact master composite
- pypa/gh-action-pypi-publish master composite
- flake8 >=4.0.1
- numpy >=1.17.1
- pytest ==7.1.2
- pytest-cov ==4.0.0
- scipy >=1.7.1
