model1.fit(X_train, y_train) model2.fit(X_train, y_train) model3.fit(X_train, y_train) pred_m1=model1.predict_proba(X_test) pred_m2=model2.predict_proba(X_test) pred_m3=model3.predict_proba(X_test) pred_final=(pred_m1+pred_m2+pred_m3)/3