Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error rewards #3

Open
SheldonCurtiss opened this issue Sep 28, 2021 · 3 comments
Open

Error rewards #3

SheldonCurtiss opened this issue Sep 28, 2021 · 3 comments

Comments

@SheldonCurtiss
Copy link

image

https://github.com/ju-leon/NEATer/blob/main/neater/strategies/neat/neat.py#L119

@SheldonCurtiss
Copy link
Author

nvm forgot to install requirements.

@SheldonCurtiss
Copy link
Author

Actually issue still here even using the correct requirements...
Appears to randomly start for some reason.

@SheldonCurtiss
Copy link
Author

Fixed by changing to this it seems.

  # Evaluate all species
    rewards = []
    rewards = np.array(rewards) 
    for species in self.species:
        reward = species.evaluate(epoch_len, render)
        rewards = np.append(rewards, reward)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant