Computer scienceData scienceInstrumentsScikit-learnTraining ML models with scikit-learnClassification in scikit-learn

SVM in scikit-learn

Linear kernel

Report a typo

Note that this task assumes scikit-learn version 1.2.2

You have the following starter code:

from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC

iris = datasets.load_iris()
X_train, X_test, y_train, y_test = train_test_split(iris.data, iris.target, test_size=0.3, random_state=42)

Fit SVC on the train set with the linear kernel. What is the mean accuracy of the test data?

Enter a number
___

Create a free account to access the full topic