hyperopt / hyperopt-sklearn

Hyper-parameter optimization for sklearn
hyperopt.github.io/hyperopt-sklearn
Other
1.57k stars 270 forks source link

AllTrialsFailed: #173

Open Kayden-lolasery opened 2 years ago

Kayden-lolasery commented 2 years ago

Hey Hyperopt team!

I've been facing an intermittent issue when fitting the HyperoptEstimator to my data.

I've changed nothing in code but re-running the same code when restarting my kernel results in this error: model error grab ~\anaconda3\lib\site-packages\hyperopt\base.py in best_trial(self) 620 ] 621 if not candidates: --> 622 raise AllTrialsFailed 623 losses = [float(t["result"]["loss"]) for t in candidates] 624 if len(losses) == 0:

AllTrialsFailed:

Is there any reason why this is the case? I have tried fitting with the nonscaled version of my data and it sometimes allows it to run. But I have been stuck for hours trying to make it work, your help is much appreciated! Thank you!

P.s. quite literally after failing for 20 + times, after i clicked post here the code suddenly started working again. And yes it intermittently works and fails accordingly..

jmrichardson commented 2 years ago

Same issue

yitai000 commented 3 months ago

Same issue. Have you solved this issue?