2026-09-24 02:00:56 -07:00
|
|
|
# List recipes
|
|
|
|
|
default:
|
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
|
|
# Fetch new daily prices from Coinbase
|
|
|
|
|
update:
|
|
|
|
|
python -m btcmodel update
|
|
|
|
|
|
|
|
|
|
# Score models on development data (outcomes up to the dev cutoff)
|
|
|
|
|
backtest *args:
|
|
|
|
|
python -m btcmodel {{ args }} backtest
|
|
|
|
|
|
|
|
|
|
# Score models on held-out outcomes; run sparingly, never while tuning
|
|
|
|
|
holdout *args:
|
|
|
|
|
python -m btcmodel {{ args }} backtest --holdout
|
|
|
|
|
|
|
|
|
|
# Forecast from the latest price
|
|
|
|
|
forecast *args:
|
|
|
|
|
python -m btcmodel {{ args }} forecast
|
|
|
|
|
|
|
|
|
|
test:
|
|
|
|
|
pytest -q
|
2024-11-15 16:35:07 -08:00
|
|
|
|
2024-11-15 22:48:17 -08:00
|
|
|
fmt:
|
2026-09-24 02:00:56 -07:00
|
|
|
ruff format .
|
|
|
|
|
ruff check --fix --select I .
|
|
|
|
|
nix fmt flake.nix
|
2024-11-15 22:48:17 -08:00
|
|
|
|
2024-11-16 14:07:24 -08:00
|
|
|
lint:
|
2026-09-24 02:00:56 -07:00
|
|
|
ruff check .
|
|
|
|
|
ruff format --check .
|
2024-11-16 14:07:24 -08:00
|
|
|
|
2024-11-15 16:35:07 -08:00
|
|
|
clean:
|
2024-11-17 17:05:58 -08:00
|
|
|
rm -rf output
|