py4dstem / py4DSTEM

GNU General Public License v3.0
199 stars 135 forks source link

How to handle the discontinuation of `scikit-optimize` #654

Open sezelt opened 4 months ago

sezelt commented 4 months ago

scikit-optimize, which we use in the PtychographyOptimizer, is now discontinued. There have been no releases in quite some time, and now the repo is archived. While it is still available and not causing problems at the moment, I would anticipate this to cause problems down the line, so we should come up with a plan for handling this.

Some options I think are worth considering:

gvarnavi commented 4 months ago

Agreed, we should come up with a plan to replace/maintain this.

My initial reaction after quickly googling gp-cam, optuna, and hyperopt is that optuna might be the easiest solution to provide similar high-level functionality.

bsavitzky commented 3 months ago

Thanks @sezelt! This is on the agenda for today's dev meeting.

My first high-level thought is that pulling the relevant scikit-optimize source code into py4DSTEM and maintaining ourselves sounds like a recipe for headaches :p As does doing nothing and hoping for the best!

Switching to one of these other three options sounds like the right choice. Another possible option might be Ray Tune? I don't think I have enough of a sense of the pros and cons of the various options here to weigh in on which would be best.

bsavitzky commented 3 months ago

Hi all - dropping a note here that #658 seems to have patched the immediate issue that came up so far, but this will come up again until it's properly handled - lets discuss at this week's meeting.