βœ… 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

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