def fit(self, X, y): if self.is_boxcox: self.clf.fit(X, stats.boxcox(y, self.boxcox_lambda)) else: self.clf.fit(X, y)