This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.base import BaseEstimator, TransformerMixin | |
from sklearn.model_selection import cross_val_predict | |
from sklearn.pipeline import make_union | |
from sklearn.model_selection._split import check_cv | |
from sklearn.utils.validation import check_X_y | |
class BlendedClassifierTransformer(BaseEstimator, TransformerMixin): | |
def __init__(self, clf, cv=3): | |
self.clf = clf | |
self.cv = cv |