A model specialized for imbalanced class learning.
Project description
AdHocBoost
Welcome to AdHocBoost--a model that is specialized for classification in a severely imbalanced-class scenario.
About
Many data science problems have severely imbalanced classes (e.g. predicting fraudulent transactions, predicting order-cancellations in food-delivery, predicting if a day in Berlin will be sunny). In these situations, predicting the positive class is hard! This module aims to alleviate some of that.
The AdHocBoost
model works by creating n
sequential models. The first n-1
models can most aptly be thought of
as dataset filtering models, i.e. each one does a good job at classifying rows as "definitely not the positive class"
versus "maybe the positive class". The nth
model only works on this filtered "maybe positive" data.
Like this, the class imbalance is alleviated at each filter-step, such that by the time the dataset is filtered for
final classification by the nth
model, the classes are considerably more balanced.
Run Instructions
Installation is with pip install adhocboost
. Beyond that, AdHocBoost
conforms to a sklearn-like API: to use
it, you simply instantiate it, and then use .fit()
, .predict()
, and .predict_proba()
as you see... fit ;)
Project details
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
File details
Details for the file adhocboost-0.0.6.tar.gz
.
File metadata
- Download URL: adhocboost-0.0.6.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 378908ec50bf8b21bb73ac076bad513f8c5835bf737eadaa6a1eaf6dcc60aec1 |
|
MD5 | 3c6b6354874a16cb804d67dff212f735 |
|
BLAKE2b-256 | b880e6ec9e4a3b9d34105491f496b000da8142495c6252a3096f341f5dd6e650 |
File details
Details for the file adhocboost-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: adhocboost-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc0e77d4ef03ad559546c755015881b99591c5706001dd0c9cff45c13bccb743 |
|
MD5 | 2dc83c6c5532860b9fb0a2c413e6fdb4 |
|
BLAKE2b-256 | 91be170ecaf53f130bbd29cb71ed039db588e37232a1913066e90344b68ab925 |