Bias–Variance decomposition toolkit for regression (MSE) and classification (0–1 loss)
Project description
BiasVariance Toolkit
A Python toolkit for bias–variance decomposition of machine learning models.
Features
- Mean Squared Error (MSE) decomposition for regression tasks.
- 0–1 Loss decomposition for classification tasks.
- Works with both PyTorch models and scikit-learn models.
Installation
Clone the repository and install locally:
pip install -e .
Usage
from biasvariance_toolkit import estimate_bias_variance_mse, estimate_bias_variance_0_1
# Example for regression (MSE)
bias, variance, total, bias_plus_var, avg_train_loss, test_loss = estimate_bias_variance_mse(...)
# Example for classification (0-1 Loss)
bias, variance, expected_loss, empirical_loss, avg_train_loss, test_loss = estimate_bias_variance_0_1(...)
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 biasvariance_toolkit-0.1.0.tar.gz.
File metadata
- Download URL: biasvariance_toolkit-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7ee82e3328bce7266536e688d574da2f0ec5f5365204a2cb122d02993b973ce
|
|
| MD5 |
b5313f0f15a8bc3963bd121a817eb5e2
|
|
| BLAKE2b-256 |
c291f0ed69551408cd2347837782d4f53cb769fec0a83c2ef67a02e68eebd372
|
File details
Details for the file biasvariance_toolkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: biasvariance_toolkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a529026006139a5c44b07203b4b66a8f881dc0ce34d25de923a970d0f72fef13
|
|
| MD5 |
1a1d7ecf3f60a25fd0c50a1ed7d479e3
|
|
| BLAKE2b-256 |
5d18d8e9c2661ed0f4a5df88348ab64688ce25b124a4d596eb7b6fbe093ccd4f
|