Fixed error

This commit is contained in:
Vasilis Valatsos 2023-12-02 18:58:24 +01:00
parent bebc660060
commit 7ca5063592

View file

@ -63,9 +63,10 @@ class Player(pygame.sprite.Sprite):
no_load=False): no_load=False):
self.get_current_state() self.get_current_state()
self.num_features == self.num_features = len(self.state_features)
self.agent = Agent( self.agent = Agent(
input_dims=len(self.state_features), input_dims=self.num_features,
n_actions=len(self._input.possible_actions), n_actions=len(self._input.possible_actions),
gamma=gamma, gamma=gamma,
alpha=alpha, alpha=alpha,