Optimize F1 score in O(n^2)
✓ Published0🌍 Public
Aabehmiel
Last edited Aug 3, 2017
Created on Aug 3, 2017
This visualization demonstrates the F1-score expectation maximization algorithm for optimizing predictions from posterior probabilities. It plots the expected F1 score against the number of positive labels (k), showing two curves for predictions with and without a "None" label, and marks the optimal k with a black dot. The code uses NumPy for dynamic programming calculations, pandas for data handling, and Matplotlib’s pyplot API with the ggplot style to render the line chart, annotations, and axis labels.
AI-generated description