Hi,
Can you please explain the below topic on classification,
Increasing precision reduces recall and vice-versa
Raising the threshold, decreases recall
● For ‘5’ and ‘Not 5’ classifier
○ For threshold = 0, classifier correctly classifies 5 as 5
○ For threshold = 20000, classifier incorrectly classifies digit 5 as not 5
code:
Setting the threshold to 20000
threshold = 20000
y_some_digit_pred = (y_scores > threshold)
y_some_digit_pred
array([False], dtype=bool)
But, when I run the above code, it returns True