Hello Mentors , assistants and everyone in the community ![]()
I had a problem on Week 3 Lab : Neural Network with Two Layers
The model looks good on making right prediction and has a fine decision boundary( as fig1 -3) (ops…newbie could only upload one pic.. Okay i will only leave the decision boundary )
Coordinates (in the columns):
[[2 8 2 8]
[2 8 8 2]]
Predictions:
[[ True True False False]]
Expected Output
Coordinates (in the columns):
[[2 8 2 8]
[2 8 8 2]]
Predictions:
[[ True True False False]]
But the grade failed on Exercise 3\6\7 which refers to : initialize params\update params\nn model(as fig 4-7)(changed to text description)
======Exercise3: initialize parameters : 8/10=====
Failed test case: “default_check”.
Wrong weights matrix
W1.. Expected: [[ 0.01788628 0.0043651 ] [ 0.00096497 -0.01863493]],
but got: [[0.00550798 0.00708148] [0.00290905 0.00510828]].
Failed test case: “default_check”.
Wrong weights matrix W2..
Expected: [[-0.00277388 -0.00354759]],
but got: [[0.00892947 0.00896293]].
======Exercise6: update parameters :10/20=====
Failed test case: “default_check”.
Wrong array W1..
Expected: [[ 0.01790426 0.00434497] [ 0.00099046 -0.0186642 ]],
but got: [[ 0.01790127 0.00434832] [ 0.00098621 -0.01865932]].
======Exercise7: nn_model :10/20=====
Failed test case: “default_check”.
Wrong weights matrix W1..
Expected: [[ 2.53492212 -2.06302136] [ 2.06885671 -1.96083822]],
but got: [[-2.3118913 1.66062595] [-1.86405184 1.78666822]].
And i checked the code, seems not much things i could do with? ![]()
Here are some efforts i made:
- Change the random seed from 3 to others(such as 4\33..etc)
- multiply different number such as 1\0.15\0.01 to initial weights
- add iter numbers from 3000 to 6000….
- check if i wrongly forgot to add bias?( But i did add)
- undo all unnecessary change especially those without CODE HERE marks
But my maximum score is still 78/100 TvT, I tried and graded again and again, Could anyone help with that ? I would be very grateful!!
plus: Lab ID : vqaxksunikuz
