39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
.PHONY: setup data train monitor clean
|
|||
|
|
|
||
|
|
setup:
|
||
|
|
bash scripts/setup.sh
|
||
|
|
|
||
|
|
data:
|
||
|
|
bash scripts/download_data.sh
|
||
|
|
python3 scripts/resample_to_5m.py
|
||
|
|
|
||
|
|
train:
|
||
|
|
source fx_gp_env/bin/activate && \
|
||
|
|
cd src && \
|
||
|
|
PYTHONUNBUFFERED=1 python3 run_until_good_phase2.py 2>&1 | tee ../logs/master_run.log
|
||
|
|
|
||
|
|
train-phase1:
|
||
|
|
source fx_gp_env/bin/activate && \
|
||
|
|
cd src && \
|
||
|
|
PYTHONUNBUFFERED=1 python3 phase1_run_until_good.py 2>&1 | tee ../logs/phase1_master_run.log
|
||
|
|
|
||
|
|
monitor:
|
||
|
|
tail -f logs/master_run.log
|
||
|
|
|
||
|
|
summary:
|
||
|
|
cat logs/phase2_summary.txt
|
||
|
|
|
||
|
|
clean:
|
||
|
|
find . -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
||
|
|
find . -name "*.pyc" -delete 2>/dev/null || true
|
||
|
|
|
||
|
|
help:
|
||
|
|
@echo "GP FX Strategy — Available commands:"
|
||
|
|
@echo " make setup — Install dependencies"
|
||
|
|
@echo " make data — Download and resample forex data"
|
||
|
|
@echo " make train — Run Phase 2 training loop"
|
||
|
|
@echo " make train-phase1— Run Phase 1 training loop"
|
||
|
|
@echo " make monitor — Live tail training log"
|
||
|
|
@echo " make summary — Show training summary table"
|
||
|
|
@echo " make clean — Remove cache files"
|