C1W2_Assignment grading

Hi, can anyone help me take a look at my assignment? I don’t know why it’s showing the error:
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.

In python notebook, this happens when a cell is run before previous cells.

1 Like

how do I fix this problem?

Run all of the previous cells first.

no, this happened when it submitted my assignment. It showed in the log.

you can restart the kernel.

I restarted the kernel and run all again. Although it runs well in my notebook, the log hasn’t changed anything. It still shows the problem.
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.

where are error is being showed? In notebook? It will be helpful if you show the code snippet.

it’s shown in my submission log, not the notebook. The notebook restarted and run all snippets correctly.

Okay… Thank you… It’s an issue then. It will be fixed soon.

1 Like

@Quang_Hien_Tran Can you give me your python notebook. We need it to fix the issue.