def fit(self, X, y):
    self.poly_transformer = PolynomialFeatures(self.degree, include_bias=False)
    self.poly_transformer.fit(X)
    X = self.poly_transformer.transform(X)
    self.model = LinearRegression(fit_intercept=True)
    self.model.fit(X, y)
    return self
def fit(self, X, y):
    self.poly_transformer = PolynomialFeatures(self.degree, include_bias=False)
    self.poly_transformer.fit(X)
    X = self.poly_transformer.transform(X)
    self.model = LinearRegression(fit_intercept=True)
    self.model.fit(X, y)
    return self