You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fps7806 happy to accept a pull request. I just rescued this code from Google Code when it was shutting down so have little to no idea about it. However I'm sure there are other, actually maintained python implementations out there that might be better option.
The very last line of the nsga2.py file has:
front[i].distance += (front[i + 1].distance - front[i - 1].distance)
which should probably be:
front[i].distance += (front[i + 1].objectives[obj_index] - front[i - 1].objectives[obj_index])
The error disables the density estimation portion of the algorithm (by setting all distances to inf/-inf/nan).
I know it's an old repo but would be good to let people know in case they stumble upon this like I did :)
The text was updated successfully, but these errors were encountered: