SGDClassifier accuracy MUCH worse than LinearSVC
1
$begingroup$
with LinearSVC, I get an accuracy off 0.89: linearSVC = LinearSVC().fit(X_train, y_train) y_pred = linearSVC.predict(X_test) print('accuracy', np.sum(y_pred == y_test) / y_test.shape[0]) Because I need online training, I tried the same with SGDClassifier: sgd = SGDClassifier().fit(X_train, y_train) y_pred = sgd.predict(X_test) print('accuracy', np.sum(y_pred == y_test) / y_test.shape[0]) but now I get 0.004 - what am I missing here? The shape of X_train is (21519, 8255). Of course I do not expect the exact same accuracy, but SGDClassifier basically gets nothing right...
scikit-learn online-learning
share | improve this question
...