Usage Examples

This page stays close to the CLI. If you are using Bukka day to day, this is the page to copy from.

Basic Project Creation

Create a project with a dataset:

python -m bukka run --name iris_classifier --dataset iris.csv --target species

Create the same project through a config file when the command gets longer:

python -m bukka init-config
python -m bukka run --config bukka_config.yaml

Common project shapes

Binary classification:

python -m bukka run -n fraud_detection -d transactions.csv -t is_fraud \
    --backend pandas --problem-type binary_classification

Regression:

python -m bukka run -n housing_prices -d housing.csv -t price \
    --problem-type regression --train-size 0.75

Clustering:

python -m bukka run -n customer_segments -d customers.csv \
    --problem-type clustering --backend polars

Tuning the scaffold

The CLI also supports a few switches for when the defaults are not enough:

python -m bukka run -n my_project -d data.csv --skip-venv
python -m bukka run -n my_project -d data.csv --strata gender age_group
python -m bukka run -n my_project -d data.csv --mlflow
python -m bukka run -n my_project -d data.csv --dummy
python -m bukka run -n my_project -d data.csv --tpot

The programmatic API exists, but it is the long way around. Most people should stay on the CLI.

Next steps