-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (34 loc) · 1.82 KB
/
Copy pathMakefile
File metadata and controls
51 lines (34 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: install up down fmt lint test doctor search baselines eval sample demo repro readme summary notebooks clean
install: ## uv sync with dev extras
uv sync --extra dev
up: ## bring up MLflow on :5050
docker compose up -d
down: ## stop services (volumes preserved)
docker compose down
fmt: ## ruff format
uv run ruff format src tests scripts
lint: ## ruff check
uv run ruff check src tests scripts
test: ## pytest smoke + invariant suite
uv run pytest
doctor: ## environment readiness check
uv run rl-augment doctor
search: ## run the verified sklearn augmentation-policy search
uv run rl-augment search configs/digits-search.yaml
baselines: ## honest comparison: no-aug vs RandAugment vs TrivialAugment vs searched
uv run rl-augment baselines configs/digits-search.yaml
eval: ## final honest number on the held-out TEST split
uv run rl-augment eval configs/digits-search.yaml
sample: ## render originals vs augmented under the found policy (PNG montage)
uv run rl-augment sample configs/digits-search.yaml --n 8
demo: search baselines eval sample ## full search -> baselines -> eval -> sample loop
repro: ## prove the search is deterministic (same seed → identical metrics)
uv run python scripts/check_repro.py -- uv run rl-augment search configs/digits-smoke.yaml
readme: ## run the README's ci-test commands so the docs can't go stale
uv run python scripts/test_readme.py
summary: ## search + print the markdown metrics summary CI posts to the run page
uv run rl-augment search configs/digits-search.yaml --json | uv run python scripts/ci_report.py
notebooks: ## execute every marimo notebook headless (fails on a dead cell)
@for nb in notebooks/*.py; do echo "running $$nb"; uv run python "$$nb" || exit 1; done
clean:
rm -rf artifacts mlruns mlartifacts mlflow.db metrics.json .pytest_cache .ruff_cache