def fit(self, X, y):
    for classifier in self.classifiers:
        classifier.fit(X, y)

def predict_proba(self, X):
    self.predictions_ = list()
for classifier in self.classifiers:
    self.predictions_.append(classifier.predict_proba(X))
return np.mean(self.predictions_, axis=0)
Best way to combine probabilistic classifiers in scikit-learn