streamline logging. fixes

This commit is contained in:
Dobromir Popov
2025-06-25 13:45:18 +03:00
parent ad76b70788
commit 9bbc93c4ea
5 changed files with 214 additions and 235 deletions

View File

@ -1138,6 +1138,8 @@ class CleanTradingDashboard:
dqn_active = False
dqn_last_loss = 0.0
dqn_prediction_count = 0
last_action = 'NONE'
last_confidence = 0.0
if self.orchestrator and hasattr(self.orchestrator, 'sensitivity_dqn_agent'):
if self.orchestrator.sensitivity_dqn_agent is not None:
@ -1151,8 +1153,6 @@ class CleanTradingDashboard:
dqn_prediction_count = dqn_stats.get('prediction_count', 0)
# Get last action with confidence
last_action = 'NONE'
last_confidence = 0.0
if hasattr(dqn_agent, 'last_action_taken') and dqn_agent.last_action_taken is not None:
action_map = {0: 'SELL', 1: 'BUY'}
last_action = action_map.get(dqn_agent.last_action_taken, 'NONE')