title: scikit learn coefficients polynomialfeatures
body: <p>I have fit a model with the help of PolynomialFeatures, but I don't know how to grab the coefficients of the model. The code is the following:</p>
  
  <pre><code>import numpy as np
  import pandas as pd
  from sklearn.linear_model import LinearRegression
  from sklearn.preprocessing import PolynomialFeatures
  from sklearn.pipeline import make_pipeline
  import matplotlib.pyplot as plt
  
  X = np.matrix([0,1,2,3,4,5,6,7,8,9,10]).reshape((11,1))
  Y = np.matrix([0,2.2,3.5,14.3,20.4,32.1,40.3,  
             59.1,86.2,90.3,99.9]).reshape((11,1))
  a = PolynomialFeatures(15)
  modelo = make_pipeline(a, LinearRegression())
  modelo.fit(X, Y)
  plt.plot(X,Y,'.')
  plt.plot(X, modelo.predict(X),'-')
  plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kA2JG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kA2JG.png" alt="original data"></a></p>