Created
April 19, 2011 12:08
-
-
Save fabianp/927229 to your computer and use it in GitHub Desktop.
GridSearch fails when arguments are not hashable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scikits.learn import svm, grid_search, datasets | |
iris = datasets.load_iris() | |
parameters = {'C': [np.array(1)]} | |
svr = svm.SVC() | |
clf = grid_search.GridSearchCV(svr, parameters) | |
clf.fit(iris.data, iris.target) | |
print clf.grid_points_scores_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment