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

DE Optimiser return syntax is deprecated #24

Closed
drpriscu opened this issue Nov 9, 2022 · 5 comments
Closed

DE Optimiser return syntax is deprecated #24

drpriscu opened this issue Nov 9, 2022 · 5 comments

Comments

@drpriscu
Copy link

drpriscu commented Nov 9, 2022

Dear @Neeratyoy, please see the log from running the DE optimiser:

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/dehb/optimizers/de.py:810: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
return np.array(self.traj), np.array(self.runtime), np.array(self.history)

@Neeratyoy
Copy link
Collaborator

Hi
Would you like to create a PR with this change?

return np.array(self.traj), np.array(self.runtime), np.array(self.history, dtype=object)

This should remove the warning.
If not, of course, I can update this too.

@drpriscu
Copy link
Author

Please could you?

@Neeratyoy
Copy link
Collaborator

Let me know if this is making DEHB unusable and blocking your work. I'll prioritize this a bit more and get it done sooner.

@drpriscu
Copy link
Author

Only appears when running the DE optimiser; may prevent retrieving results.

@Neeratyoy
Copy link
Collaborator

Thanks for the issue.
This has been updated in the v0.0.5 PyPi release of dehb.

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