from sklearn.ensemble import RandomForestClassifier model = RandomForestClassifier(n_estimators = 200) model.fit(x_train, y_train) y_pred = model.predict(x_test) preds=