bootcamp_machine-learning
bootcamp_machine-learning copied to clipboard
ml02 ex03 wrong shape for theta
- 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