Help on Exercise 2 Cost function logistic regression

Hello,
I am getting this failure code on the Excercise 2, see below.

Has someone a hint for me whats wrong?

Thank you.
Rainer

AssertionError Traceback (most recent call last)
in
8
9 # UNIT TESTS
—> 10 compute_cost_test(compute_cost)

~/work/public_tests.py in compute_cost_test(target)
24 b = 0
25 result = target(X, y, w, b)
—> 26 assert np.isclose(result, 2.15510667), f"Wrong output. Expected: {2.15510667} got: {result}"
27
28 X = np.random.randn(4, 3)

AssertionError: Wrong output. Expected: 2.15510667 got: 30.929554543256074

Hi!

Can you send me your code in a direct message so I can help?

Hello,
Thank you very much for your help.
Before sending code, let me check, is this a private message?
Rainer

Hi!

No this is not a private message, this is the open forum.

Thank you for your feedback.

Do you mean an Email or is there a other alternative for a private message?

I started a private message thread to use.

Thank you very much.

I have completd Excercise 2 and 3 successfully now.
With extensive trials an errors.

So far do good.

Thank you.

Rainer