bootcamp_machine-learning icon indicating copy to clipboard operation
bootcamp_machine-learning copied to clipboard

ml02 ex03 wrong shape for theta

Open Mazoise opened this issue 3 years ago • 0 comments

  • Day: 02
  • Exercise: 03

Theta should have shape (4, 1) not (3, 1) since x has shape (., 3)

theta1 = np.array([3,0.5,-6]).reshape((-1, 1))
...
theta2 = np.array([0,0,0]).reshape((-1, 1))

should be :

theta1 = np.array([0, 3, 0.5, -6]).reshape((-1, 1))
...
theta2 = np.array([0, 0, 0, 0]).reshape((-1, 1))

Fixed on:

  • [ ] Github
  • [ ] Gitlab

Mazoise avatar Jun 23 '22 15:06 Mazoise