-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
75 lines (55 loc) · 3.42 KB
/
Copy pathMakefile
File metadata and controls
75 lines (55 loc) · 3.42 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.PHONY: install install-bio test lint format clean train-cam train-rsp train-tcd train-all fetch-data preprocess evaluate smoke-test
# ── Installation ─────────────────────────────────────────────────────────────
install:
pip install -e ".[dev]"
install-bio:
pip install -r requirements-bio.txt
# ── Testing ───────────────────────────────────────────────────────────────────
test:
KMP_DUPLICATE_LIB_OK=TRUE pytest tests/ -v --tb=short
test-fast:
KMP_DUPLICATE_LIB_OK=TRUE pytest tests/ -v --tb=short -x -q --ignore=tests/test_integration
smoke-test:
KMP_DUPLICATE_LIB_OK=TRUE python -c "import oracle; print('oracle package OK')"
KMP_DUPLICATE_LIB_OK=TRUE python -c "from oracle.interfaces import CAMOutput, RSPOutput, TCDOutput; print('interfaces OK')"
KMP_DUPLICATE_LIB_OK=TRUE python -c "from oracle.models.cancer_score_mlp import CancerScoreFunction; print('CancerScoreFunction OK')"
KMP_DUPLICATE_LIB_OK=TRUE python -c "from oracle.models.switch_predictor_gnn import SwitchPredictorGNN; print('SwitchPredictorGNN OK')"
# ── Code quality ──────────────────────────────────────────────────────────────
lint:
ruff check oracle/ tests/ scripts/
format:
ruff format oracle/ tests/ scripts/
isort oracle/ tests/ scripts/
typecheck:
mypy oracle/ --ignore-missing-imports
# ── Data pipeline ─────────────────────────────────────────────────────────────
fetch-data:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/fetch_data.py
preprocess:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/preprocess_all.py
build-benchmarks:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/build_benchmarks.py
# ── Training ──────────────────────────────────────────────────────────────────
train-cam:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/train_cam.py
train-rsp:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/train_rsp.py
train-tcd:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/train_tcd.py
train-all:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/train_all.py
# ── Inference ─────────────────────────────────────────────────────────────────
run-aml:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/run_aml_pipeline.py
evaluate:
KMP_DUPLICATE_LIB_OK=TRUE python scripts/evaluate.py
# ── Cleanup ───────────────────────────────────────────────────────────────────
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -name "*.pyc" -delete
find . -name "*.pyo" -delete
rm -rf .pytest_cache/ .mypy_cache/ .ruff_cache/
clean-checkpoints:
rm -rf checkpoints/*.pt checkpoints/*.ckpt
clean-outputs:
rm -rf outputs/reports/* outputs/molecules/* outputs/figures/*