コード例 #1
0
 def predict(self, X):
     X = normalize(polynomial_features(X, degree=self.degree))
     return super(ElasticNet, self).predict(X)
コード例 #2
0
 def fit(self, X, y):
     X = normalize(polynomial_features(X, degree=self.degree))
     super(ElasticNet, self).fit(X, y)
コード例 #3
0
 def predict(self, X):
     X = normalize(polynomial_features(X, degree=self.degree))
     return super(PolynomialRidgeRegression, self).predict(X)
コード例 #4
0
 def fit(self, X, y):
     X = normalize(polynomial_features(X, degree=self.degree))
     super(PolynomialRidgeRegression, self).fit(X, y)
コード例 #5
0
 def predict(self, X):
     X = polynomial_features(X, degree=self.degree)
     return super(PolynomialRegression, self).predict(X)
コード例 #6
0
 def fit(self, X, y):
     X = polynomial_features(X, degree=self.degree)
     super(PolynomialRegression, self).fit(X, y)