- Les bases
- Modules standards
- Modules non standards
from sklearn.linear_model import LinearRegression regressor = LinearRegression() regressor.fit(Xtrain, ytrain) ytest = regressor.predict(Xtest)
from sklearn.linear_model import ElasticNet regressor = ElasticNet() regressor.fit(Xtrain, ytrain) ytest = regressor.predict(Xtest)