Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

InvalidParameterError #1160

Open
Daniel-Trung-Nguyen opened this issue Apr 5, 2023 · 3 comments
Open

InvalidParameterError #1160

Daniel-Trung-Nguyen opened this issue Apr 5, 2023 · 3 comments

Comments

@Daniel-Trung-Nguyen
Copy link

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

@ryanbbrown
Copy link

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.

@msat59
Copy link

msat59 commented Apr 16, 2023

Has the development been stopped?

@a11apurva
Copy link

a11apurva commented May 4, 2023

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants