C1 W3 Lab Excercise 6

Hello,
I passed the test on excercise 6 but the values don’t match.

dj_db: 0.28
First few elements of regularized dj_dw:
[16.237444240683217, 12.047326628088538, 1026.397204362715, 696.2311299647832]
All tests passed!

versus expected Expected Output:

**dj_db:**0.07138288792343
First few elements of regularized dj_dw:
[[-0.010386028450548], [0.011409852883280], [0.0536273463274], [0.003140278267313]]

I got the following in the learning parameters: Iteration 0: Cost nan Iteration 1000: Cost nan Iteration 2000: Cost nan Iteration 3000: Cost nan Iteration 4000: Cost nan Iteration 5000: Cost nan Iteration 6000: Cost nan Iteration 7000: Cost nan Iteration 8000: Cost nan Iteration 9000: Cost nan Iteration 9999: Cost nan

The plot shows:

Train Accuracy: 60.000000

Expected Output:

Train Accuracy:~ 80%

This means your code doesn’t work correctly. That’s why the figure and the accuracy are not correct.

Same i am facing the accuracy issue mine is 82.2 and in notepad they want 80 exact what should i do now .

The notation in the lab is “~ 80%”. That ‘~’ means “approximately”.

My code grades 100% and also gives Train Accuracy = 82.2%