Open PARODBE opened 8 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?
can you provide a full snippet that we can run along with the full traceback?
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?