Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unhashable type: 'dict' #344

Open
PARODBE opened this issue Feb 14, 2024 · 1 comment
Open

unhashable type: 'dict' #344

PARODBE opened this issue Feb 14, 2024 · 1 comment

Comments

@PARODBE
Copy link

PARODBE commented Feb 14, 2024

Hi!

I am obtaining the error: unhashable type: 'dict'

My code is the same than in the instruction:

plot.grid_search(
gs.cv_results_,
change='n_estimators',
subset={'n_estimators': [16,32], 'criterion': 'entropy'},
kind="bar",
)

And my grid is:

{'n_estimators': [16, 32],
'criterion': ['gini', 'entropy'],
'min_samples_split': [2],
'max_depth': [None, 2],
'class_weight': [None, 'balanced'] + [{0: 1.7-x, 1: x} for x in np.linspace(0.0, 0.99, 2)]}

Could you help me, please?

@edublancas
Copy link
Contributor

can you provide a full snippet that we can run along with the full traceback?

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

No branches or pull requests

2 participants