cleanup and removed dummy data
This commit is contained in:
@ -283,13 +283,16 @@ class TrainingSystemValidator:
|
||||
if hasattr(self.orchestrator, 'rl_agent') and self.orchestrator.rl_agent:
|
||||
logger.info(" ✓ RL Agent loaded")
|
||||
|
||||
# Test prediction capability
|
||||
# Test prediction capability with real data
|
||||
if hasattr(self.orchestrator.rl_agent, 'predict'):
|
||||
# Create dummy state for testing
|
||||
dummy_state = np.random.random(1000) # Simplified test state
|
||||
try:
|
||||
prediction = self.orchestrator.rl_agent.predict(dummy_state)
|
||||
logger.info(" ✓ RL Agent can make predictions")
|
||||
# Use real state from orchestrator instead of dummy data
|
||||
real_state = self.orchestrator._get_rl_state('ETH/USDT')
|
||||
if real_state is not None:
|
||||
prediction = self.orchestrator.rl_agent.predict(real_state)
|
||||
logger.info(" ✓ RL Agent can make predictions with real data")
|
||||
else:
|
||||
logger.warning(" ⚠ No real state available for RL prediction test")
|
||||
except Exception as e:
|
||||
logger.warning(f" ⚠ RL Agent prediction failed: {e}")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user