Testing dataset balancing techniques from previous works.
How do I install this package?
As usual, just download it using pip:
pip install miur_daad_balancing
Tests Coverage
Since some software handling coverages sometime get slightly different results, here’s three of them:
Usage
Three balancing methods are available for the MIUR-DAAD project:
Umbalanced
This method just leaves the data as-is, and is used more as callback usefull to uniform the pipeline:
from miur_daad_balancing import umbalanced
training, testing = generate_my_data(...)
balanced_training, balanced_testing = umbalanced(training, testing)
Balanced
Applies a maximum threshold to every class in the training set as specified in the default package settings (3000):
from miur_daad_balancing import balanced
training, testing = generate_my_data(...)
balanced_training, balanced_testing = balanced(training, testing)
Full Balanced
Applies a maximum threshold to every class in the training set and balances to some default proportions the testing set:
from miur_daad_balancing import full_balanced
training, testing = generate_my_data(...)
balanced_training, balanced_testing = full_balanced(training, testing)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file miur_daad_balancing-1.0.0.tar.gz.
File metadata
- Download URL: miur_daad_balancing-1.0.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.12.1 pkginfo/1.4.2 requests/2.13.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f63ca370b8ed98ddf1f7e61bd8ad8bff944226f4e89e33cff4caa1ed100731ed
|
|
| MD5 |
81f251fdf2c8b5c5d8e9ab2210bebbda
|
|
| BLAKE2b-256 |
1b72d74279f5ff405ed8ec7b6d02a786d13591681cb9b12eb558b953567caaf6
|