Skip to main content
100%

Gist cfc8c25355ee6cf7e972cc74974aa369

✓ Published0🌍 Public
Aalvinthai
Last edited Aug 16, 2017
Created on Aug 16, 2017

The visualization plots the expected F1-score against the threshold k for a binary classification problem, comparing predictions that include a "None" label versus those without it. It uses a dynamic programming algorithm to compute expectations, then marks the optimal k with a black dot and annotation. The code generates the plot with pandas DataFrame plotting and matplotlib's pyplot, using the ggplot style, and also includes a separate benchmark chart showing quadratic runtime scaling for the expectation maximization process.

AI-generated description

Similar vizzes