From 7ca506359209585950249359614f83ccad8fca1b Mon Sep 17 00:00:00 2001 From: Vasilis Valatsos Date: Sat, 2 Dec 2023 18:58:24 +0100 Subject: [PATCH] Fixed error --- entities/player.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entities/player.py b/entities/player.py index a003a36..ca1d59e 100644 --- a/entities/player.py +++ b/entities/player.py @@ -63,9 +63,10 @@ class Player(pygame.sprite.Sprite): no_load=False): self.get_current_state() - self.num_features == + self.num_features = len(self.state_features) + self.agent = Agent( - input_dims=len(self.state_features), + input_dims=self.num_features, n_actions=len(self._input.possible_actions), gamma=gamma, alpha=alpha,