Classic Binary Classification Metrics and top-k constraints

When I started with binary classifiers I thought the model magically would spit out only a 0 or 1. From those outputs a few simple metrics…