Statistics tools for ML models and deployment
Project description
- Author:
ZeD@UChicago <zed.uchicago.edu>
- Description:
Tools for ML statistics
- Documentation:
- Example:
https://github.com/zeroknowledgediscovery/zedstat/blob/master/examples/example1.ipynb
Usage:
from zedstat import zedstat
zt=zedstat.processRoc(df=pd.read_csv('roc.csv'),
order=3,
total_samples=100000,
positive_samples=100,
alpha=0.01,
prevalence=.002)
zt.smooth(STEP=0.001)
zt.allmeasures(interpolate=True)
zt.usample(precision=3)
zt.getBounds()
print(zt.auc())
# find the high precision and high sensitivity operating points
zt.operating_zone(LRminus=.65)
rf0,txt0=zt.interpret(fpr=zt._operating_zone.fpr.values[0],number_of_positives=10)
rf1,txt1=zt.interpret(fpr=zt._operating_zone.fpr.values[1],number_of_positives=10)
display(zt._operating_zone)
print('high precision operation:\n','\n '.join(txt0))
print('high recall operation:\n','\n '.join(txt1))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zedstat-0.0.146.tar.gz
(92.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zedstat-0.0.146-py3-none-any.whl
(182.4 kB
view details)
File details
Details for the file zedstat-0.0.146.tar.gz.
File metadata
- Download URL: zedstat-0.0.146.tar.gz
- Upload date:
- Size: 92.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1417f4fdbd52b4b551ebccd5f3ab4a38b13e17e6e307b3ee7b9e5b7a34eea13
|
|
| MD5 |
1c108250da556b01810553b871d2d2a6
|
|
| BLAKE2b-256 |
1d8535c6f90b35f5d166b18ee024cef04b937023c9aa48cbad5c37622bb3464c
|
File details
Details for the file zedstat-0.0.146-py3-none-any.whl.
File metadata
- Download URL: zedstat-0.0.146-py3-none-any.whl
- Upload date:
- Size: 182.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1e894b12793f45d732532b735d4c51d6c22f2d90be61c89eac42ddab3250b74
|
|
| MD5 |
53972f6ea34364eb98435de0a312c4a1
|
|
| BLAKE2b-256 |
870c12e549bb9278878776ddccf814bc07f1f155f388150dd5ce6c29e6b14bb4
|