✅ Quiz M4.02#

Question

If we fit a linear regression where X is a single column vector, how many parameters our model will be made of?

  • a) 1

  • b) 2

  • c) 3

Select a single answer

Question

If we train a scikit-learn LinearRegression with X being a single column vector and y a vector, coef_ and intercept_ will be respectively:

  • a) an array of shape (1, 1) and a number

  • b) an array of shape (1,) and an array of shape (1,)

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

  • d) an array of shape (1,) and a number

Select a single answer