Assignment grading

I passes all the tests but it gives me half a mark

Hello @Fetlework_Gubena

Please do not share screenshots that includes any part of grader codes, if any mentor ask you then you can share with them via DM, as posting codes on post threads are against community guidelines, but you could surely share the submission grader output which shows why your codes failed.

  1. You do not require to check if pred is greater than threshold as that part of the instructions are no where mentioned but to include the threshold when recalling the function
  • Remember to set the value for the threshold when calling the functions.
  1. Next get TP, FP, TN, FN using our previously defined functions
    So you need to calculate
    TP using true positive from the previously defined function with y, pred and th(also notice the argument section it mentioned y and pred are already np.array). Same applies for FP, TN and FN

Regards
DP

I apologize for posting the code.
Thank you very much for your help

1 Like

Is the issue resolved?