Skip to main content

CLI utility for training boosting models with automated preprocessing.

Project description

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 or regression.
  • --booster: choose between lgbm, xgb, catboost.
  • --metric: auto-detected if omitted (accuracy for classification, rmse for regression).
  • --output: optional CSV to save predictions (includes ID column when --id-col is 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.

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.

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

auto_booster-0.1.3.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_booster-0.1.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file auto_booster-0.1.3.tar.gz.

File metadata

  • Download URL: auto_booster-0.1.3.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for auto_booster-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d8e8f77167a3ea6c347fe7a7f7d37282f6537317ee7ae2c2a2a5207871b0fcb7
MD5 b316d3c01d6915f33034264faadf69e8
BLAKE2b-256 948f5e6770fcdfc290027bd470e0f67c81d6b9fad5ca602b5b3d1930d2b6c2c8

See more details on using hashes here.

File details

Details for the file auto_booster-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: auto_booster-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for auto_booster-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 551c54d937a8c76c047ba78b234576dbc45136e82a924a7e6f598a9f8643026c
MD5 3f444295f7aeef29c47ef59aa2585ff1
BLAKE2b-256 9ca7d1d2a0f6c8051c2f200b6bb66ee605780ac3ccdedac46a52703e85182844

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page