From 43803caaf18eeb5ea1022fa2f05ef4cc94149111 Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 29 Mar 2025 03:57:04 +0200 Subject: [PATCH] ignores --- .gitignore | 25 ++++++++++++++++++++++++- NN/models/cnn_model_pytorch.py | 6 ++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4fa5a17..dee36eb 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,27 @@ models/trading_agent_final.pt.backup logs/ trade_logs/ *.csv -cache/ \ No newline at end of file +cache/ +realtime_chart.log +training_results.png +training_stats.csv +__pycache__/realtime.cpython-312.pyc +cache/BTC_USDT_1d_candles.csv +cache/BTC_USDT_1h_candles.csv +cache/BTC_USDT_1m_candles.csv +cache/ETH_USDT_1d_candles.csv +cache/ETH_USDT_1h_candles.csv +cache/ETH_USDT_1m_candles.csv +models/trading_agent_best_pnl.pt +models/trading_agent_best_reward.pt +models/trading_agent_final.pt +NN/__pycache__/realtime_main.cpython-312.pyc +NN/__pycache__/realtime-main.cpython-312.pyc +NN/models/__pycache__/__init__.cpython-312.pyc +NN/models/__pycache__/cnn_model_pytorch.cpython-312.pyc +NN/models/__pycache__/cnn_model.cpython-312.pyc +NN/models/__pycache__/transformer_model_pytorch.cpython-312.pyc +NN/utils/__pycache__/data_interface.cpython-312.pyc +NN/utils/__pycache__/multi_data_interface.cpython-312.pyc +NN/utils/__pycache__/realtime_analyzer.cpython-312.pyc +models/trading_agent_best_pnl.pt diff --git a/NN/models/cnn_model_pytorch.py b/NN/models/cnn_model_pytorch.py index e2adcb6..99801f0 100644 --- a/NN/models/cnn_model_pytorch.py +++ b/NN/models/cnn_model_pytorch.py @@ -134,6 +134,12 @@ class CNNModelPyTorch: output_size (int): Size of the output (1 for regression, 3 for classification) timeframes (list): List of timeframes used (for logging) """ + # Action tracking + self.action_counts = { + 'BUY': 0, + 'SELL': 0, + 'HOLD': 0 + } self.window_size = window_size self.num_features = num_features self.output_size = output_size