model_to_set = OneVsRestClassifier(SVC(kernel='poly'))
parameters = {'estimator__C': [1, 2, 4, 8], 'estimator__kernel': ['poly',
    'rbf'], 'estimator__degree': [1, 2, 3, 4]}
model_tunning = GridSearchCV(model_to_set, param_grid=parameters,
    score_func=f1_score)
model_tunning.fit(iris.data, iris.target)
print(model_tunning.best_score_)
print(model_tunning.best_params_)
GridSearch для оценки внутри OneVsRestClassifier