Auto Boost
Auto Boost is a small command-line helper that mirrors the original Auto_boost.ipynb
Kaggle workflow. It handles missing values, categorical encoding, cross-validated
training, and submission generation for gradient-boosting models (LightGBM,
XGBoost, or CatBoost) without needing to run a notebook.
Installation
From PyPI (recommended)
python -m pip install --upgrade auto_boost
# or include extras:
python -m pip install "auto_boost[lightgbm]"
From source
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install ".[lightgbm,xgboost]" # select any boosters you need
Base dependencies are pandas, numpy, and scikit-learn. Install at least one
booster extra (lightgbm, xgboost, catboost) depending on what you plan to run.
Quickstart
auto-boost \
--train train.csv \
--test test.csv \
--target Transported \
--model-type classification \
--metric accuracy \
--booster lgbm \
--folds 10 \
--random-state 10 \
--id-col PassengerId \
--prediction-col Transported \
--output submission.csv
Key flags:
--train/--test: paths to CSV files.--target: column in train.csv you want to predict.--model-type:classification,regression, orautoto infer from the target column.--booster: choose betweenlgbm,xgb,catboost.--metric: auto-detected if omitted (accuracyfor classification,rmsefor regression).--output: optional CSV to save predictions (includes ID column when--id-colis supplied).
Run auto-boost --help (or auto_boost --help) for the full reference. The legacy
python auto_boost.py shim has been removed in favor of the installable entrypoints.
Works With Any Tabular Dataset
- Automatic task detection when
--model-type autois supplied, so you can point the CLI at a CSV without pre-labeling it as classification vs regression. - Smarter preprocessing that imputes instead of dropping high-cardinality categorical features and scales numerics when requested.
- Built-in label encoding for non-numeric targets (including booleans and strings), ensuring LightGBM/XGBoost/CatBoost work regardless of how the classes are represented.
Development & Packaging
For local development install in editable mode:
python -m pip install --upgrade pip build twine
python -m pip install -e ".[lightgbm]"
To produce distributable artifacts (wheel + sdist):
python -m pip install build
python -m build
ls dist/
The files under dist/ can be uploaded with twine upload dist/* when
publishing to PyPI. Generated folders such as dist/, *.egg-info, and
__pycache__ are ignored via .gitignore.
Releasing to TestPyPI / PyPI
Following the official Packaging Python Projects guide:
# Build fresh artifacts
rm -rf dist/
python -m build
# Upload to TestPyPI first
python -m twine upload --repository testpypi dist/*
# Verify install from TestPyPI (optional)
python -m pip install --index-url https://test.pypi.org/simple/ \
--extra-index-url https://pypi.org/simple auto_boost
# When satisfied, push to PyPI for public install via:
# python -m pip install auto_boost
python -m twine upload dist/*
Bump auto_boost.__version__ before every upload to avoid version conflicts.
About the Notebook
The original Auto_boost.ipynb is retained for reference, but the script fixes
several issues (missing class instantiation, incorrect feature-importance labels,
buggy categorical handling) and is the recommended entry point for automation.
Metadata
Release files for auto-booster 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| auto_booster-0.1.4.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| auto_booster-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.9 kB
Release files / auto_booster-0.1.4.tar.gz
| Download URL | auto_booster-0.1.4.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee3c3a8d961ccb6a3c44be496ccf94122d13d185280b82d135bc63285c47f90e
|
|
BLAKE2b-256 checksum How to use checksums |
dac3b2370deae63134df3e5b021ccdbc53d6af3ece94a048a3e507bbba59a4ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / auto_booster-0.1.4-py3-none-any.whl
| Download URL | auto_booster-0.1.4-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7404aa142099481744df0704bed60108afbd1975bc59e0dc8b292c4554bfbb5
|
|
BLAKE2b-256 checksum How to use checksums |
c4587850081cdef62b35011a686f45f37cf2838c227d1bcbd7eed227fdb9bac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|