Wrong output in "Sensitivity and Specificity for the patch prediction" block

Hello, i’m passig week 3 programmig assigment and everything go well before " Sensitivity and Specificity for the patch prediction" block. There is a wrong output :

Sensitivity: 0.8049
Specificity: 0.9924

Expected output:

Sensitivity: 0.7891
Specificity: 0.9960

but before that block all the rest outputs are correct and “All tests are passed”
thats what i did in “compute_class_sens_spec” function :

(Solution code removed, as posting it publicly is against the honour code of this community, regardless if it is correct or not)

Hi @herrtomate,

These outputs are not related to any graded function, they are just a reference as to what sort of values you should be getting. As they are close enough, I’d say you don’t have to worry about them, especially as you mentioned you have passed all previous graded functions and gotten the “All tests passed” for all of them.

One thing I would like to mention here is, sharing of solution code publicly is against the honour code of this community. I have remove it.


Hi Mubsi,
Thank you very much for quick response. Unfortunately i wasn’t able to pass a test - got 0%.
Tried the following : opened a new notebook and copied all code from previously saved old one and it worked ok. Probably some single time issue.

Or something in your notebook had changed which shouldn’t’ have had.

Glad to know you were able to pass!