text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier

from sklearn.naive_bayes import GaussianNB

from sklearn.svm import SVC

from sklearn.naive_bayes import GaussianNB
from sklearn.svm import SVC
from sklearn.ensemble import RandomForestClassifier, GradientBoostingClassifier
model = GaussianNB()
model1 = SVC()
model2 = RandomForestClassifier()
model3 = GradientBoostingClassifier()

models = [model, model1, model2, model3]
for i in models:
    i.fit(xtrain, ytrain)
    ypred = i.predict(xtest)
    print(i, accuracy_score(ytest, ypred))