Fixed error
This commit is contained in:
parent
bebc660060
commit
7ca5063592
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue