scikit-optimize icon indicating copy to clipboard operation
scikit-optimize copied to clipboard

InvalidParameterError

Open Daniel-Trung-Nguyen opened this issue 2 years ago • 3 comments

I got this error when running the visualizing-results.ipynb notebook InvalidParameterError: The 'criterion' parameter of ExtraTreesRegressor must be a str among {'friedman_mse', 'squared_error', 'absolute_error', 'poisson'}. Got 'mse' instead. Cheers, Daniel

Daniel-Trung-Nguyen avatar Apr 05 '23 03:04 Daniel-Trung-Nguyen

I got the same error when trying to use forest_minimize. Looking into the code, I think their custom ExtraTreesRegressor and RandomForestRegressor uses 'mse' instead of 'friedman_mse', probably needs to be changed.

ryanbbrown avatar Apr 11 '23 21:04 ryanbbrown

Has the development been stopped?

msat59 avatar Apr 16 '23 20:04 msat59

skopt 0.9.0 sklearn 1.2.2

Still getting this error.

InvalidParameterError: The 'criterion' parameter of RandomForestRegressor must be a str among {'poisson', 'absolute_error', 'squared_error', 'friedman_mse'}. Got 'mse' instead.

Function call -

results = skopt.forest_minimize(my_objective, SPACE, n_calls=100, base_estimator="RF")

@Daniel-Trung-Nguyen @ryanbbrown any workaround apart from downgrading scikit-learn?

a11apurva avatar May 04 '23 21:05 a11apurva