A 'reshape(-1, 1) is missing:
The correction asks to test with x = np.array(range(1,11))
But the subject always give us vectors like this:
[[1],
[2],
[3]]
Not like [1, 2, 3].
So it's better with a reshape: x = np.array(range(1,11)).reshape(-1, 1)
Nice issue ! clear ! I love it.
The issue has been dupplicated and open in the corresponding private repo where the correction sheet are.
The PR is merged
A 'reshape(-1, 1) is missing: The correction asks to test with x = np.array(range(1,11)) But the subject always give us vectors like this: [[1], [2], [3]] Not like [1, 2, 3]. So it's better with a reshape: x = np.array(range(1,11)).reshape(-1, 1)
Correction :