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

Bug in Ackley definitions #1

Open
anvaari opened this issue Nov 24, 2022 · 1 comment
Open

Bug in Ackley definitions #1

anvaari opened this issue Nov 24, 2022 · 1 comment

Comments

@anvaari
Copy link

anvaari commented Nov 24, 2022

Hi,
I think, I found bug in Ackley definition. According to provided link, We should apply Square root on square term (s1). But it didn't apply.
In order to fix this line 60 should rewrite as follows :

return self.bias - 20*math.exp(-0.2*math.sqrt(s1)) - math.exp(s2)
@ogencoglu
Copy link

True. Good catch!

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

2 participants