Hello @Odutola_Olujim
Please don’t post codes here on public post threads it is against community guidelines. Kindly remove the codes.
The way you recalling the TP, FP, FN and TN using numpy sum is incorrect.
Use the def statements from UNQ-C1, true_positives, false_positives, true_negatives and false negatives as the y, pred values are already defined in the previous grader cell.
So just defining them with the y, pred and threshold should be enough to calculate the right way for TP, FP, TN and FN.
Notice the header instruction in the code mentions below
get TP, FP, TN, FN using our previously defined functions
Let me know if you still have issue.
Regards
DP