hyperopt / hyperopt-sklearn

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

continuous_loss_function easy fix #175

Closed DOH-PJG1303 closed 2 years ago

DOH-PJG1303 commented 2 years ago

I believe that your current code assumes that the output of sklearn.model.predict() and sklearn.model.predict_proba() are the same. However, they have shapes of (n,) and (n,2) respectively.

In the case of predict_proba(), appending a 2D shape object to a 1 dimensional list causes an error.

I should mention that this error comes up when you fit the training data. The error itself is: job exception: Found input variables with inconsistent numbers of samples: [number, numberx2]

image