Hi,
This is a bug, and is related to
https://github.com/scikit-learn/scikit-learn/issues/2609
   Jake

 Jake VanderPlas
 Director of Research – Physical Sciences
 eScience Institute, University of Washington
 http://www.vanderplas.com


On Mon, Aug 25, 2014 at 8:12 AM, Sheila the angel <[email protected]>
wrote:

> Hello all,
> In case of grid search for KNN I got the error.
>
> >>>iris = datasets.load_iris()
>
> >>>gp = {"n_neighbors":[2,3], "metric":['euclidean']}
>
> >>>clf = GridSearchCV(KNeighborsClassifier(), gp, cv=4).fit(iris.data,
> iris.target)
>
>
> TypeError: __init__() got an unexpected keyword argument 'p'
>
> Why does it complain about 'p' ?
>
> Is it a bug?
>
>
> Thanks
>
> --
>
> Sheila
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to