Looks to be incorrect answer in an exercise

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

is marked to be incorrect answer - but I have in the notebok:

from sklearn.linear_model import LinearRegression
import numpy as np
model = LinearRegression()
data = np.array([1, 2, 3, 4, 5]).reshape(-1, 1)
target = np.array([2, 4, 6, 8, 10]).reshape(-1,1)

model.fit(data, target)
print(model.coef_.shape, model.intercept_.shape)

(1, 1) (1,)

looks to be my fault here - should not be doing that for target