βœ… Quiz M4.03ΒΆ

Question

Let us consider a pipeline that combines of a polynomial feature extraction step and a linear regression model. The prediction function of this pipeline on a dataset with a single input feature is a straight line:

  • a) yes

  • b) no

Question

Fitting a linear regression where X has n_features columns and the target is a single continuous vector, what is the respective type/shape of coef_ and intercept_?

  • a) it is not possible to fit a linear regression in dimension higher than 2

  • b) array of shape (n_features,) and a float

  • c) array of shape (1, n_features) and an array of shape (1,)