PythonDataScienceHandbook icon indicating copy to clipboard operation
PythonDataScienceHandbook copied to clipboard

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

Open Dutta-SD opened this issue 3 years ago • 1 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?

Dutta-SD avatar Jul 29 '21 08:07 Dutta-SD

before running GridSearchCV :

from sklearn.model_selection import GridSearchCV #call the function grid search clf = GridSearchCV(model, parameters)

BrunaFortunato-eng avatar Oct 29 '21 18:10 BrunaFortunato-eng