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

Improve fitness_avg calculation #6

Open
BlueCl0wn opened this issue Jan 9, 2025 · 0 comments
Open

Improve fitness_avg calculation #6

BlueCl0wn opened this issue Jan 9, 2025 · 0 comments

Comments

@BlueCl0wn
Copy link
Owner

Right now the fitness_avg is calculated with
0 if (len(avg_rewards) == 0) else sum(avg_rewards)/len(avg_rewards)

This is not perfect as the zero at the beginning of a run messes up the average.

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