C1_W2_assignment (Evaluation of Diagnostic Models)

In the second week assignment, all my codes ran correctly. However, when I submitted the assignment, I encountered this error:
How should I fix it?

Function “true_positives” not found in Code Cell UNQ_C2.
Function “false_positives” not found in Code Cell UNQ_C2.
Function “true_negatives” not found in Code Cell UNQ_C2.
Function “false_negatives” not found in Code Cell UNQ_C2.
Function “true_positives” not found in Code Cell UNQ_C4.
Function “false_negatives” not found in Code Cell UNQ_C4.
Function “false_positives” not found in Code Cell UNQ_C4.
Function “true_negatives” not found in Code Cell UNQ_C4.
Function “true_positives” not found in Code Cell UNQ_C5.
Function “false_positives” not found in Code Cell UNQ_C5.
Function “true_negatives” not found in Code Cell UNQ_C5.
Function “false_negatives” not found in Code Cell UNQ_C5.
Code Cell UNQ_C1: Function ‘false_positives’ is correct.
Code Cell UNQ_C1: Function ‘true_negatives’ is correct.
Code Cell UNQ_C1: Function ‘false_negatives’ is correct.
Code Cell UNQ_C2: Function ‘get_accuracy’ is correct.
Code Cell UNQ_C3: Function ‘get_prevalence’ is correct.
Code Cell UNQ_C4: Function ‘get_sensitivity’ is correct.
Code Cell UNQ_C4: Function ‘get_specificity’ is correct.
Code Cell UNQ_C5: Function ‘get_ppv’ is correct.
Code Cell UNQ_C5: Function ‘get_npv’ is correct.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Hi @Najmeh_Aboulghassemi

First of all make sure that you are using the up-to-date version of the notebook but pushing the end date if the assignment’s deadline has passed!

Then, ensure that you have correctly defined these functions in the required code cells. Check if the function definitions are present and correctly implemented in each of the mentioned cells.

Additionally, make sure that each function is correctly spelled and that there are no syntax errors. Once these functions are properly defined and checked, your submission should work correctly.

Hope this helps, try these steps and give feedback if you encounter further issues.

Hi @Najmeh_Aboulghassemi

kindly refer the below thread comments to understand where you might have gone wrong

You are suppose to use the defined function recall from C1 into the C2 for TP, FP, FN and TN with mentioned y_pred and not redefine it in C2 again.

let me know if issue is not understood!!

Regards
DP