fronni
A Python library for quickly calculating & displaying machine learning model performance metrics with confidence intervals.
How fronni works?
Requirements
-
Python >= 3.6
-
numba
-
numpy
-
scikit-learn
-
plotly
Installing fronni
pip install fronni
Full documentation
Functions from the classification module:
classification_report
Generates confidence intervals for precision, recall, & F1 metrics for a binary or multi-class classification model, given arrays of predicted & label values.
| Parameter | Type | Default |
|---|---|---|
| label | Numpy array or Pandas series | None |
| predicted | Numpy array or Pandas series | None |
| n | integer, number of bootstrap iterations | 1,000 |
| confidence_level | integer value between 1 & 100 | 95 |
| as_dict | Boolean, return nested dictionary if True otherwise Pandas dataframe | False |
| confidence_level | value between 1 & 100 | 95 |
| sort_by_sample_size | Boolean, return the Pandas dataframe, sorted in descending order of class sample size | False |
plot_classification_report
Plots precision, recall, & confidence intervals for F1 metrics for a binary or multi-class classification model, given a classification report input.
| Parameter | Type | Default |
|---|---|---|
| report | output from classification_report | None |
| save_to_filename | string, path of filename image to save like "image.png" | None |
From the regression module:
regression_report
Generates confidence intervals for RMSE, MAE, and R^2 metrics for a regression model, given arrays of predicted & label values.
| Parameter | Type | Default |
|---|---|---|
| label | Numpy array or Pandas series | None |
| predicted | Numpy array or Pandas series | None |
| n | integer, number of bootstrap iterations | 1,000 |
| as_dict | Boolean, return nested dictionary if True otherwise Pandas dataframe | False |
See the CONTRIBUTING file for how to help out.
License
fronni is Apache 2.0 licensed, as found in the LICENSE file.
Metadata
Release files for fronni 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fronni-0.0.6.tar.gz | 9.8 kB | Without provenance | Details for fronni-0.0.6.tar.gz |
Release files / fronni-0.0.6.tar.gz
| Download URL | fronni-0.0.6.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
02be7872f5b97c5962c001e87210bc63ac3d8abd42f4e63c55a593a53909bf8d
|
|
BLAKE2b-256 checksum How to use checksums |
1285177db228e5b587a9a4bb5ecb9cd2dfe4f7a6b360a7c0063bb1287e891cdc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.1 requests/2.26.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/2.7.18
|
Security for fronni 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.