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

Possible inconsistent tracking of fitness indicies #57

Open
phinate opened this issue Jun 28, 2023 · 0 comments
Open

Possible inconsistent tracking of fitness indicies #57

phinate opened this issue Jun 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@phinate
Copy link
Collaborator

phinate commented Jun 28, 2023

I've been getting some strange behaviour here and there when trying to inspect the Pokemon with highest/lowest fitness etc. As an example, a CI run just failed on an indexing error when trying to look up teams with np.argmin(fitness), implying a difference in size between the teams and the fitness arrays at the time that's called.

So really, we need a better way to track fitness. We could potentially do what we've already thought about and make fitness an attribute of the Team class. We'd probably have to be careful to make sure this is only settable once, because all teams in the next generation are made as new instances of Team, so we don't want to accidentally overwrite a fitness by mistake instead of passing it to the correct new team.

Should be pretty easy to do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants