Merge commit '3e924b32ac1737c859430186ddf6f288a1fba465' into march-trader-sonnet-3.7
This commit is contained in:
commit
4f6db5e86c
6
.gitignore
vendored
6
.gitignore
vendored
@ -32,6 +32,10 @@ crypto/sol/.vs/*
|
||||
crypto/brian/models/best/*
|
||||
crypto/brian/models/last/*
|
||||
crypto/brian/live_chart.html
|
||||
crypto/gogo2/models/*
|
||||
crypto/gogo2/trading_bot.log
|
||||
*.log
|
||||
|
||||
crypto/gogo2/checkpoints/trading_agent_episode_*.pt
|
||||
*trading_agent_continuous_*.pt
|
||||
*trading_agent_episode_*.pt
|
||||
crypto/gogo2/models/trading_agent_continuous_150.pt
|
||||
|
11
crypto/gogo2/.vscode/launch.json
vendored
11
crypto/gogo2/.vscode/launch.json
vendored
@ -6,7 +6,7 @@
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "main.py",
|
||||
"args": ["--mode", "train", "--episodes", "1000"],
|
||||
"args": ["--mode", "train", "--episodes", "100"],
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
},
|
||||
@ -36,6 +36,15 @@
|
||||
"args": ["--mode", "live"],
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
},
|
||||
{
|
||||
"name": "Continuous Training",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "main.py",
|
||||
"args": ["--mode", "continuous", "--refresh-data"],
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true
|
||||
}
|
||||
]
|
||||
}
|
@ -16,4 +16,9 @@ C:\Users\popov\miniforge3\Lib\site-packages\torch\amp\grad_scaler.py:132: UserWa
|
||||
2025-03-10 12:11:30,927 - INFO - Starting training on device: cpu
|
||||
2025-03-10 12:11:30,928 - ERROR - Training failed: 'TradingEnvironment' object has no attribute 'initialize_price_predictor'
|
||||
2025-03-10 12:11:30,928 - INFO - Exchange connection closed
|
||||
Backend tkagg is interactive backend. Turning interactive mode on.
|
||||
Backend tkagg is interactive backend. Turning interactive mode on.
|
||||
|
||||
|
||||
|
||||
|
||||
2025-03-10 12:35:14,489 - INFO - Episode 34: Reward=232.41, Balance=$98.47, Win Rate=70.6%, Trades=17, Episode PnL=$-1.33, Total PnL=$-559.78, Max Drawdown=7.0%, Pred Accuracy=99.9%
|
1
crypto/gogo2/checkpoints/best_metrics.json
Normal file
1
crypto/gogo2/checkpoints/best_metrics.json
Normal file
@ -0,0 +1 @@
|
||||
{"best_reward": 202.7441047517104, "best_pnl": 9.268344827764809, "best_win_rate": 73.33333333333333, "last_episode": 30, "timestamp": "2025-03-10T17:57:19.913481"}
|
4
crypto/gogo2/cuda.py
Normal file
4
crypto/gogo2/cuda.py
Normal file
@ -0,0 +1,4 @@
|
||||
import torch
|
||||
print(f"PyTorch version: {torch.__version__}")
|
||||
print(f"CUDA available: {torch.cuda.is_available()}")
|
||||
print(f"CUDA version: {torch.version.cuda if torch.cuda.is_available() else 'Not available'}")
|
1262
crypto/gogo2/main.py
1262
crypto/gogo2/main.py
File diff suppressed because it is too large
Load Diff
@ -46,6 +46,12 @@ pip install -r requirements.txt
|
||||
```bash
|
||||
MEXC_API_KEY=your_api_key
|
||||
MEXC_API_SECRET=your_api_secret
|
||||
|
||||
|
||||
cuda support
|
||||
|
||||
```bash
|
||||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||||
```
|
||||
## Usage
|
||||
|
||||
|
@ -6,4 +6,5 @@ python-dotenv>=0.19.0
|
||||
ccxt>=2.0.0
|
||||
websockets>=10.0
|
||||
tensorboard>=2.6.0
|
||||
scikit-learn
|
||||
scikit-learn
|
||||
mplfinance
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
192666
crypto/gogo2/trading_bot.log
192666
crypto/gogo2/trading_bot.log
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 170 KiB |
BIN
crypto/gogo2/visualizations/training_episode_30.png
Normal file
BIN
crypto/gogo2/visualizations/training_episode_30.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
Loading…
x
Reference in New Issue
Block a user