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