I don't understand how to deal with multi class classification with SVM. All I have found at internet is one to all approach which is for binary classification only. But, my target is for example:
print(target)
Output:
[ 0 0 0 ... 9 9 9]
So, How to deal this with SVM properly? I have just build the model like those examples. But, it seems to me that's not correct way for multi label classification. Please guide me. If SVM is not a good choice at all, suggest me please which one will be good (and easy to implement like my example below if possible) among Random Forest, decision trees, K nearest neighbors etc. (except NN and CNN as I have already implemented with those two algorithms in my dataset, I just need one more algorithm to compare my results). So far, My coding:
X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)
from sklearn.svm import SVC
model_svm = SVC(kernel='linear')
clf_svm = model_svm.fit(X_train,y_train)
y_svm = model_svm.predict(X_test)
from sklearn.metrics import accuracy_score
print('Accuracy of SVM: ', accuracy_score(y_svm, y_test))