C1_W2_Lab_1 - errors

I believe there is an error in the definition of TPR. It should be about TP, not FP, right?
It is how many Positives we predicted correctly out of ALL positives. So the right formula is TPR = TP/P = TP / (TP + FN) and not TPR=FP/FP+TN as you have it.

Moreover the ROC plot in the cell 14 is also labeled incorrectly. The axes have FPR = sensitivity for X axis and TPR = (1 - specificity) for Y axis. So essentially Specificity and Sensitivity are swapped. Which later leads to confusion with the quiz when one of the questions is asking:
“For every specificity as we vary the threshold, the sensitivity of model 1 is at least as high as model 2…”

Hi @alexkotlik,

Can you share the screenshot of the TPR formula you are talking about ? I can’t seem to find where it is written as TPR=FP/FP+TN

Also, there are many graphs in the notebook, could you also share the screenshot of the graph you are talking about ?

Thanks,
Mubsi

Hi @Mubsi ,


Sure, here it is.

Thanks for sharing these @alexkotlik, we shall take a look.

@Mubsi I just did this lab, and the incorrect definition is still there. Quite confusing as its not merely a simple typo, but an important metric definition

I agree, I was very confused while doing this lab.

I can also see the error was identified 4 months ago and I am doing the labs now and it is still not fixed

Hi @alice8217 & @Eric5,

I shall check. Thanks for letting me know. This should have been fixed.

Best,
Mubsi

This has been fixed.

Thanks Mubsi, I just had another look
Appears the error still there
image