jakevdp / PythonDataScienceHandbook

Python Data Science Handbook: full text in Jupyter Notebooks

Home Page:http://jakevdp.github.io/PythonDataScienceHandbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple Errors in notebooks / 05.13-Kernel-Density-Estimation.ipynb

Dutta-SD opened this issue · comments

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)