I am trying to get an accuracy score for the classifiers but I keep getting this error
TypeError: predict() missing 1 required positional argument: 'X'
Can anyone help?
from sklearn.metrics import accuracy_score
classifiers = [SVC, sgd, naive_bayes]
# for each classifier get the accuracy score
scores = [accuracy_score(clf.predict(test_X), test_y) for clf in classifiers]
index = np.argmax(scores)
print(scores)
print(classifiers[index])
print(scores[index])