automl / DEHB

https://automl.github.io/DEHB/
Apache License 2.0
72 stars 16 forks source link

DE Optimiser return syntax is deprecated #24

Closed drpriscu closed 1 year ago

drpriscu commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Please could you?

Neeratyoy commented 2 years ago

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 commented 2 years ago

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

Neeratyoy commented 1 year ago

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