2014-08-25 17:12 GMT+02:00 Sheila the angel <[email protected]>:
>>>>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?

This is certainly a bug, and I can reproduce it with the latest master.
https://github.com/scikit-learn/scikit-learn/issues/3589

------------------------------------------------------------------------------
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