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.142.tar.gz
(84.9 kB
view details)
File details
Details for the file zedstat-0.0.142.tar.gz.
File metadata
- Download URL: zedstat-0.0.142.tar.gz
- Upload date:
- Size: 84.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31b30349fb49ef13e19e79b3e2e38814f917b3527b4aed9719a07271d5875d50
|
|
| MD5 |
8afdb2288d272831b5feb82f51b7d135
|
|
| BLAKE2b-256 |
efcb75a5898098b61b17b4994290acf0df240d76d23cf08899958e599281686c
|