streamline logging. fixes
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user