from sklearn.ensemble import AdaBoostClassifier ac = AdaBoostClassifier() ac.fit(X, y) y2 = ac.predict(X2)