jakevdp / PythonDataScienceHandbook

Python Data Science Handbook: full text in Jupyter Notebooks
http://jakevdp.github.io/PythonDataScienceHandbook
MIT License
42.34k stars 17.74k forks source link

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

Open Dutta-SD opened 3 years ago

Dutta-SD commented 3 years ago

Issues Found

I was trying to run the 05.13-Kernel-Density-Estimation.ipynb notebook and found multiple issues:

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?

BrunaFortunato-eng commented 2 years ago

before running GridSearchCV :

from sklearn.model_selection import GridSearchCV

call the function grid search

clf = GridSearchCV(model, parameters)