text_plain_output_1.png
from sklearn.ensemble import RandomForestClassifier

from sklearn.ensemble import VotingClassifier

from sklearn.linear_model import SGDClassifier

from sklearn.metrics import accuracy_score

from sklearn.ensemble import VotingClassifier
voting = VotingClassifier(estimators=[('sgd', SGDClassifier()), ('randForest', RandomForestClassifier())], voting='hard')
voting.fit(x_train, y_train)
y_pred_voting = voting.predict(x_test)
accuracy_score(y_test, y_pred_voting)