Package-first machine learning training repository using uv.
-
Sync dependencies:
uv sync
-
Run tests:
uv run pytest
-
Run lint:
uv run ruff check . -
Start JupyterLab:
uv run jupyter lab
src/ml_training_practice/ # Reusable training code
tests/ # Unit and smoke tests
notebooks/ # Experiment notebooks
scripts/linear_regression/ # Linear regression practice scripts
scripts/logistic_regression/ # Logistic regression practice scripts
data/raw/ # Local raw datasets (gitignored)
data/processed/ # Local processed datasets (gitignored)
models/ # Saved model artifacts (gitignored)
reports/figures/ # Generated figures (gitignored)
- Build reusable logic in
src/ml_training_practice. - Use notebooks for experiments, but import package code instead of duplicating logic.
- Keep large/local artifacts in
data/,models/, andreports/figures/.
Run common tasks with short commands:
make sync
make lint
make test
make train
make notebookRun the polynomial degree comparison (default: degrees 1..5):
uv run python scripts/linear_regression/train_housing_polynomial.pyOr via Make:
make train-poly