campa
September 14, 2023, 10:32am
1
I see these grade errors in Exercise 7 nn_model.

Any helps ? it seems a “precision” problem, but I am not able to discover where is my error.

Failed test case: “default_check”. Wrong weights matrix W1…
Expected:
[[ 2.22641773 -1.95781602]
[ 1.92521557 -1.74008809]],
but got:
[[ 2.53492212 -2.06302136]
[ 2.06885671 -1.96083822]].

Failed test case: “default_check”. Wrong bias vector b1…
Expected:
[[ 6.31408636]
[-4.84201647]],
but got:
[[ 6.29704669]
[-4.8483427 ]].

Failed test case: “default_check”. Wrong weights matrix W2…
Expected:
[[ 7.12818935 -7.24882361]],
but got:
[[ 7.06228665 -7.20205483]].

Failed test case: “default_check”. Wrong bias vector b2…
Expected:
[[-3.43414637]],
but got:
[[-3.46304788]].
…

1 Like

TMosh
September 14, 2023, 10:31pm
2
Please check your private messages for instructions.

2 Likes

BryanCW
September 25, 2023, 5:29am
3
I get the same issue, any updates?

1 Like

TMosh
September 25, 2023, 5:45am
4
This assignment, its utility .py files, and the grader have all been updated in the last two weeks.

Be sure you’re using the current version of this assignment.

Instructions for updating your copy of the assignment are in the “M4ML Resources” area of the discussion forum, in the ‘FAQ’ thread.

Master the Toolkit of AI and Machine Learning. Mathematics for Machine Learning and Data Science is a beginner-friendly specialization where you’ll learn the fundamental mathematics toolkit of machine learning: calculus, linear algebra, statistics, and probability.

1 Like

BryanCW
September 25, 2023, 6:37am
5
I’ve done updating the assigment, but the issue still persist

@TMosh

1 Like

TMosh
September 25, 2023, 6:24pm
6
I’m getting the same error you are. I will investigate further.

1 Like

TMosh
September 26, 2023, 12:01am
7
I’ve reported the issue to DLAI staff.

1 Like

I have this problem too and error is same. Is there a new solution to this problem?

TMosh
September 28, 2023, 5:31pm
9
There is no update, but staff are investigating it.

In compute_cost function i change:
np.dot() to np.multiply()

In sigmoid function i change :
np.power() to np.exp()

It’s work for me, maybe can help you too

TMosh
September 29, 2023, 4:58pm
11
@FAIQ_HIDAYAT_DZAKWAN , please do not share your code on the forum. That is not allowed by the Code of Conduct.

I have edited your reply.

Oh i see, i apologize and thank you for telling me.

TMosh
October 2, 2023, 10:10pm
13
Thanks for your suggestions.

Note, these statements are both true, but I don’t quite understand why np.power() is any different than np.exp(). Mathematically they should be the same, but the grader certainly seems to prefer np.exp().