ploomber / sklearn-evaluation

Machine learning model evaluation made easy: plots, tables, HTML reports, experiment tracking and Jupyter notebook analysis.
https://sklearn-evaluation.ploomber.io
Apache License 2.0
455 stars 54 forks source link

unhashable type: 'dict' #344

Open PARODBE opened 7 months ago

PARODBE commented 7 months ago

Hi!

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

My code is the same than in the instruction:

plot.grid_search( gs.cvresults, 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 commented 7 months ago

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