Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 2.47 KB

AGENTS.md

File metadata and controls

23 lines (16 loc) · 2.47 KB

AGENTS.md

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.

Principles

  • 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 casual and registered (raw counts stay in data/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), keep ty check clean (import typing as T), and log through loguru (LoggerService, no bare prints).
  • SQLite MLflow store and external skills: Run MLflow tracking and registry on sqlite:///mlflow.db with artifacts under ./mlruns, referencing models via models:/name@alias or models:/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.

Commands

  • 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, and mise run project / project:run <name> run separately; list all via mise tasks).

Layout

  • src/bikes/ & tests/: Package modules (core/, io/, jobs/, utils/), OmegaConf configs (confs/), and mirrored pytest suite.
  • data/ & notebooks/: 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 from fmind/.github.