Complete the code to create a one-vs-rest classifier using scikit-learn.
from sklearn.multiclass import [1] from sklearn.svm import SVC model = [1](estimator=SVC())
The OneVsRestClassifier wraps a binary classifier to handle multi-class problems by training one classifier per class.
Complete the code to create a one-vs-one classifier using scikit-learn.
from sklearn.multiclass import [1] from sklearn.svm import SVC model = [1](estimator=SVC())
The OneVsOneClassifier trains one classifier for every pair of classes, useful for multi-class classification.
Fix the error in the code to correctly train a one-vs-rest classifier.
from sklearn.multiclass import OneVsRestClassifier from sklearn.svm import SVC model = OneVsRestClassifier(SVC()) model.[1](X_train, y_train)
The method to train a scikit-learn model is fit, not 'train'.
Fill both blanks to create a one-vs-one classifier and train it.
from sklearn.multiclass import [1] from sklearn.svm import SVC model = [2](estimator=SVC()) model.fit(X_train, y_train)
Both blanks require OneVsOneClassifier to correctly create and use the one-vs-one strategy.
Fill all three blanks to create a one-vs-rest classifier, train it, and predict on test data.
from sklearn.multiclass import [1] from sklearn.svm import SVC model = [1](estimator=SVC()) model.[2](X_train, y_train) predictions = model.[3](X_test)
Use OneVsRestClassifier to create the model, fit to train it, and predict to get predictions.