IV is a Python package designed to assess the accuracy of machine learning classifiers by generating a full probability distribution of their performance. This method goes beyond traditional cross-validation by using an iterative process and Markov Chain Monte Carlo (MCMC) to estimate uncertainty. By only using samples for training after they have been tested alpha inflation is prevented.
Project description
IV: Independent Validation
IV is a Python package designed to assess the accuracy of machine learning classifiers by generating a full probability distribution of their performance. This method goes beyond traditional cross-validation by using an iterative process and Markov Chain Monte Carlo (MCMC) to estimate uncertainty. By only using samples for training after they have been tested alpha inflation is prevented.
Installation
pip install independent-validation
Usage
An example of running the independent validation process with a classifier:
from sklearn.datasets import load_wine
import independent_validation as iv
from sklearn.svm import SVC
wine = load_wine()
X, y = wine.data, wine.target
iv_svm = iv.IV(X, y, SVC(gamma='scale')) # initiating
iv_svm.run_iv() # classify samples
iv_svm.compute_posterior() # use mcmc to compute posterior
bacc_svm_dist = iv_svm.get_bacc_dist() # get desired output
print("Mode (MAP) value:", bacc_svm_dist.map())
License
MIT License
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
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
File details
Details for the file independent_validation-0.1.3.tar.gz.
File metadata
- Download URL: independent_validation-0.1.3.tar.gz
- Upload date:
- Size: 194.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a67f6da5937d0f0d27f3a895e8b651088e0de75b6a053e986b35f088f1f22598
|
|
| MD5 |
aa51582c0f63c3c0d9aa40a2997f0af5
|
|
| BLAKE2b-256 |
bf9dd3dcf8b2c0ec1db8056206d3ca8de7d7ce4accfcb5bc25d4e72e53c011b9
|
File details
Details for the file independent_validation-0.1.3-py3-none-any.whl.
File metadata
- Download URL: independent_validation-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
071dabe67c3e20d0e56d4616b66b00e49768f00213e142048f259c9423ec497b
|
|
| MD5 |
5945c6ef868ed535146acfdfb1325545
|
|
| BLAKE2b-256 |
3300dbebc48af13da8c24960f863d53994cc57f6f427d98b70f85da7f249697c
|