Machine Learning, Data Science, Pogramming, Statistics, Python.
learned. Let us have a look at a polynomial fit on our data. from sklearn.linear_model import Ridge from sklearn.preprocessing import PolynomialFeatures from sklearn.pipeline import make_pipeline model = make_pipeline(PolynomialFeatures(3), Ridge()) model.fit(x_train.reshape(-1, 1), y_train)