示例#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)