CORRECTION ML01 EX02 Error in basic tests
antoinedauchy opened this issue · 2 comments
antoinedauchy commented
madvid commented
With the specified learning rate, indeed you are right.
The example was obtained with alpha=5e-4
.
The issue has been duplicated and fixed in the corresponding repository containing the evaluation sheets.
madvid commented
In reality with:
x = np.array(range(1,101)).reshape(-1,1)
y = 0.75*x + 5
theta = np.array([[1.],[1.]])
fit_(x, y, theta, 1e-5, 20000)
We get:
[[1.18949688], [0.80687732]]
You may need to check your formula of the gradient ?