-
Notifications
You must be signed in to change notification settings - Fork 16
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
Comments
Hi return np.array(self.traj), np.array(self.runtime), np.array(self.history, dtype=object) This should remove the warning. |
Please could you? |
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. |
Only appears when running the DE optimiser; may prevent retrieving results. |
Thanks for the issue. |
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)
The text was updated successfully, but these errors were encountered: