Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (31 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
46 lines (31 loc) · 1.59 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
.PHONY: install promote check-artifact train smoke predict monitor api frontend test lint format compile docker-check
PYTHON ?= python
install: ## Cài package và dependency phát triển
$(PYTHON) -m pip install -e ".[dev,api,frontend,notebooks]"
promote: ## Đóng gói artifact đã khóa từ notebook
$(PYTHON) scripts/promote_ds_artifact.py
check-artifact: ## Kiểm tra checksum và model contract
$(PYTHON) scripts/check_artifact.py
train: ## Tái huấn luyện production candidate, không đọc holdout
$(PYTHON) scripts/train.py
smoke: ## Chạy training pipeline nhanh bằng synthetic data
$(PYTHON) scripts/train.py --smoke --artifact artifacts/smoke.joblib
predict: ## Chấm điểm 100 giao dịch development để smoke test
$(PYTHON) scripts/predict.py --input data/fraudTrain.csv --limit 100
monitor: ## Tạo report drift trên 100 giao dịch development
$(PYTHON) scripts/monitor.py data/fraudTrain.csv --limit 100
api: ## Chạy API local
$(PYTHON) -m uvicorn api.app.main:app --host 0.0.0.0 --port 8000
frontend: ## Chạy dashboard local
$(PYTHON) -m streamlit run frontend/app.py
test: ## Chạy unit và integration test
$(PYTHON) -m pytest
lint: ## Kiểm tra lỗi mã nguồn
$(PYTHON) -m ruff check src/fraudect api scripts tests
format: ## Chuẩn hóa mã nguồn
$(PYTHON) -m ruff format src/fraudect api scripts tests
$(PYTHON) -m ruff check --fix src/fraudect api scripts tests
compile: ## Kiểm tra import và bytecode
$(PYTHON) -m compileall -q src/fraudect api scripts
docker-check: ## Kiểm tra cấu hình Docker Compose
docker compose config --quiet