y = -4 + 2 * x - 3 * x ** 2
model = make_pipeline(PolynomialFeatures(2), Ridge(alpha=1e-08,
    fit_intercept=False))
model.fit(x[:, (None)], y)
ridge = model.named_steps['ridge']
print(ridge.coef_)
How to extract equation from a polynomial fit?