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

Typo in de.py #41

Closed
cypark0411 opened this issue May 25, 2020 · 1 comment
Closed

Typo in de.py #41

cypark0411 opened this issue May 25, 2020 · 1 comment

Comments

@cypark0411
Copy link

Your codes are very helpful to solve my projects.

While I applied your code, I found a typo that you might know already.

Typo part:
de.py -> class DE -> def solve

'return' might be changed as follows:

Original code:
return self.denormalize(P[idx].reshape(-1, 1)), fitness[idx]

Fixed:
return self.denormalize(P[idx].reshape(1, -1)), fitness[idx]

@pablormier
Copy link
Owner

Fixed in v1.1.0. Thanks!

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