promptdojo_

The confusion matrix tells the truth faster — step 6 of 7

Write confusion(y_true, y_pred) returning the dict {"tp": ..., "fp": ..., "fn": ..., "tn": ...}. Print the dict for the 10-row eval, then the accuracy derived from its boxes (:.0%).

full-screen editor opens — close anytime to keep reading.