Compute cost in week 3

{moderator edit - solution code removed}

is my implementation for cost correct ?
i am getting an error. please help

See this link on what parameter to set when y_pred is a logit.

Thankyou , I figured that out after spending 2 hours Lol