Skip to main content

AdHocBoost

PyPI version License

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 ;)

Release files for adhocboost 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adhocboost 0.0.6
File Size Uploaded
adhocboost-0.0.6.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adhocboost 0.0.6
File Interpreter ABI Platform
adhocboost-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 14.4 kB

Release files / adhocboost-0.0.6.tar.gz

Download URL adhocboost-0.0.6.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
378908ec50bf8b21bb73ac076bad513f8c5835bf737eadaa6a1eaf6dcc60aec1
BLAKE2b-256 checksum
How to use checksums
b880e6ec9e4a3b9d34105491f496b000da8142495c6252a3096f341f5dd6e650
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / adhocboost-0.0.6-py3-none-any.whl

Download URL adhocboost-0.0.6-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc0e77d4ef03ad559546c755015881b99591c5706001dd0c9cff45c13bccb743
BLAKE2b-256 checksum
How to use checksums
91be170ecaf53f130bbd29cb71ed039db588e37232a1913066e90344b68ab925
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page