PythonDataScienceHandbook
PythonDataScienceHandbook copied to clipboard
Multiple Errors in notebooks / 05.13-Kernel-Density-Estimation.ipynb
Issues Found
I was trying to run the 05.13-Kernel-Density-Estimation.ipynb notebook and found multiple issues:
-
AttributeError: Unknown property normed
- when running plots this error crops up. -
ModuleNotFoundError: No module named 'sklearn.grid_search'
- when running GridSearchCV
Possible Solutions
The scikit-learn API has changed and some parameters are now obsolete. Changing those parameters and function calls should make the kernel run okay.
I would like to fix this kernel. Should I go ahead with this task?
before running GridSearchCV :
from sklearn.model_selection import GridSearchCV #call the function grid search clf = GridSearchCV(model, parameters)