dqn model data fix

This commit is contained in:
Dobromir Popov
2025-07-29 00:09:13 +03:00
parent 548c0d5e0f
commit e1e453c204
2 changed files with 88 additions and 74 deletions

View File

@ -1167,7 +1167,7 @@ class DQNAgent:
# Handle empty dictionary case
if not state:
logger.error("No numerical values found in state dict, using default state")
logger.error("Empty state dictionary received, using default state")
expected_size = getattr(self, 'state_size', 403)
if isinstance(expected_size, tuple):
expected_size = np.prod(expected_size)