predictiveness-curve
What's Predictiveness Curve?
Predictiveness curve is a method to display two graphs simultaneously. In both figures, the x-axis is risk percentile, the y-axis of one figure is the value of risk, and the y-axis of the other figure is true positive fractions. This makes it possible to visualize whether the model of risk fits in the medical field and which value of risk should be used as the basis for the model. See Am. J. Epidemiol. 2008; 167:362–368 for details.
Install
This module implements functions to plot Predictiveness Curve.
Install with :
pip install predictiveness-curve
Example
from predictiveness_curve import plot_predictiveness_curve
from sklearn.datasets import load_breast_cancer
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
data = load_breast_cancer()
y = data.target
X = data.data
training_X, test_X, training_y, test_y = train_test_split(
X, y, test_size=0.5, random_state=42)
clsf = RandomForestClassifier(n_estimators=100, random_state=42)
clsf.fit(training_X, training_y)
probabilities = clsf.predict_proba(test_X)[:, 1]
plot_predictiveness_curve(probabilities, test_y)
See notebooks directory for details.
Metadata
Release files for predictiveness-curve 0.2.2
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 |
|---|---|---|---|---|
| predictiveness-curve-0.2.2.tar.gz | 4.8 kB | Without provenance | Details for predictiveness-curve-0.2.2.tar.gz |
Release files / predictiveness-curve-0.2.2.tar.gz
| Download URL | predictiveness-curve-0.2.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
077b7b7ad6fab14eec3a629009bfc46893aff2b3d9d64c76a2a501191f568d19
|
|
BLAKE2b-256 checksum How to use checksums |
61d5f986e54a09f18e693c94ba7c719e2783ea41d90d6056089cecc46067649c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.8
|
Security for predictiveness-curve 0.2.2
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.