bikes (mlops-python-package) is the reference MLOps Python package for the MLOps Coding Course, generated from cookiecutter-mlops-package to predict hourly bike rental demand with MLflow, scikit-learn, Pydantic, Pandera, OmegaConf, and uv/mise.
- Pipeline and signature invariants: Training uses the full tuning config plus validated parameters; evaluation, promotion, and downstream consumers use the exact registered candidate version. Failed evaluation preserves the champion alias; standalone promotion requires a positive explicit version. Input datasets and serving signatures exclude
casualandregistered(raw counts stay indata/hour.csv); retrain historical models when changing signatures. - Typed, validated boundaries: Parse OmegaConf YAML (
confs/) into Pydantic models, validate DataFrames at boundaries with Pandera (core/schemas.py), chain specific exceptions (raise ... from err), keepty checkclean (import typing as T), and log throughloguru(LoggerService, no bare prints). - SQLite MLflow store and external skills: Run MLflow tracking and registry on
sqlite:///mlflow.dbwith artifacts under./mlruns, referencing models viamodels:/name@aliasormodels:/name/version. Keep reusable MLOps skills in mlops-coding-skills instead of vendoring copies here. - Strict gates: Pass
mise run all(100%test coverage, zero warnings) before done; fix root causes instead of weakening assertions or checks.
- Install:
mise run install(uv sync --all-groups+ Lefthook) - Format:
mise run format(ruff+dprint) - Fast test:
mise run test:parallel(coverage-free local loop) - Full gate:
mise run all(format, check,100%test coverage, wheel/sdist build;mise run build:image,mise run docs, andmise run project/project:run <name>run separately; list all viamise tasks).
src/bikes/&tests/: Package modules (core/,io/,jobs/,utils/), OmegaConf configs (confs/), and mirroredpytestsuite.data/¬ebooks/: Bike-sharing Parquet/CSV datasets and exploration notebooks.- Tooling & docs:
pyproject.toml,mise.toml,Dockerfile,docker-compose.yml,MLproject, and README.md; community, conduct, PR template, and security defaults inherit fromfmind/.github.