-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (46 loc) · 1.6 KB
/
Copy pathMakefile
File metadata and controls
57 lines (46 loc) · 1.6 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
.PHONY: setup install clean data train-single train-ensemble backtest paper-trade monitor help
help:
@echo "RL Trading Bot - Makefile Commands"
@echo "=================================="
@echo "setup - Create venv and install dependencies"
@echo "install - Install dependencies only"
@echo "clean - Remove generated files and cache"
@echo "data - Download and process stock data"
@echo "train-single - Train single RL agent"
@echo "train-ensemble - Train ensemble of agents"
@echo "backtest - Run backtesting"
@echo "paper-trade - Start paper trading"
@echo "monitor - View training progress"
@echo "tensorboard - Launch TensorBoard"
setup:
@echo "Setting up virtual environment..."
python -m venv venv
@echo "Installing dependencies..."
./venv/bin/pip install --upgrade pip
./venv/bin/pip install -r requirements.txt
@echo "Creating directories..."
mkdir -p data/raw data/processed models logs checkpoints backtest_results paper_trading_logs
@echo "Setup complete! Activate with: source venv/bin/activate"
install:
pip install -r requirements.txt
clean:
@echo "Cleaning up..."
rm -rf __pycache__ src/__pycache__ src/*/__pycache__
rm -rf *.pyc src/*.pyc src/*/*.pyc
rm -rf .pytest_cache
rm -rf build dist *.egg-info
@echo "Clean complete!"
data:
python scripts/download_data.py
train-single:
python scripts/train_single.py
train-ensemble:
python scripts/train_ensemble.py
backtest:
python scripts/backtest.py
paper-trade:
python scripts/paper_trade.py
monitor:
python scripts/monitor.py --mode training
tensorboard:
tensorboard --logdir=logs