C1_W3_Logistic_Regression - Exercise 4 - Assertion error

has anyone encountered this issue and what was the solution? any help would be appreciated
Code:

{moderator edit: code removed}

Error:

Hello,

There is a code value error as you have not applied sigmoid function with the correct code line

in the hint section, instruction mentions

# Calculate f_wb (exactly how you did it in the compute_cost function above)

Calculate the prediction for this example

    f_wb = 

Apply the threshold

# Your code here to calculate the prediction based on f_wb

you probably have applied incorrect codes. Recheck your z_wb and f_wb codes.

Refer or Check the hints given below the # UNQ_C4

GRADED FUNCTION: predict

Regards
DP

Your code computes predicted values, but it doesn’t return them as 0’s and 1’s.
You are missing a logical comparison operator.

Also please do not post your code on the forum. That’s not allowed by the Code of Conduct.

thanks, solved it.

thanks, solved it out.

sure, will not in future.