Skip to main content
added 22 characters in body
Source Link
Noah Weber
  • 5.8k
  • 1
  • 13
  • 26

Do:

from sklearn.metrics import accuracy_score, make_scorer

s_model = GridSearchCV(s_obj,parameters,cv=2, scoring=accuracy_scorescoring=make_scorer(accuracy_score))

Do:

from sklearn.metrics import accuracy_score

s_model = GridSearchCV(s_obj,parameters,cv=2, scoring=accuracy_score)

Do:

from sklearn.metrics import accuracy_score, make_scorer

s_model = GridSearchCV(s_obj,parameters,cv=2, scoring=make_scorer(accuracy_score))
Source Link
Noah Weber
  • 5.8k
  • 1
  • 13
  • 26

Do:

from sklearn.metrics import accuracy_score

s_model = GridSearchCV(s_obj,parameters,cv=2, scoring=accuracy_score)