Macro, weighted and micro F1 from one confusion matrix
Calculate macro, weighted and micro F1 on the same 100 tickets. See how a model can score 0.90 on micro F1 while missing an entire support queue.
Machine Learning3 min read
Writing
Practical writing on artificial intelligence, machine learning, and software engineering.
Calculate macro, weighted and micro F1 on the same 100 tickets. See how a model can score 0.90 on micro F1 while missing an entire support queue.
Machine Learning3 min read
Trace extra rows after a pandas merge to the keys that produced them. Predict the join size, validate a many-to-one lookup, and audit unmatched orders.
Machine Learning3 min read
Diagnose Python’s Extra data error by inspecting the second value. Read JSON Lines one record at a time and report the exact line when a record is malformed.
Software Engineering3 min read
Resolve a repeated local hour with Python zoneinfo. Compare fold values, recover both UTC instants, and detect ambiguous or nonexistent wall-clock inputs.
Software Engineering2 min read
Advertisement
Run a four-question retrieval test on extracted PDF table rows. Compare row-only chunks with repeated headers and separate retrieval errors from answer errors.
Artificial Intelligence4 min read
Score the same ranked documents with Recall@3, hit rate and MRR@3. See which metric detects missing evidence and which detects a useful result arriving late.
Artificial Intelligence3 min read
Reproduce a React hydration mismatch with UTC and Kathmandu dates, render a stable first timestamp, and test local formatting at a midnight boundary.
Software Engineering4 min read
Use GroupShuffleSplit to keep each customer in one partition. Check for overlapping IDs and see how a row split can inflate an evaluation score.
Machine Learning4 min read
Keep customers with no matching orders in a SQL report. See how COUNT(*), COUNT(order_id), and a status filter change the result of a LEFT JOIN.
Software Engineering3 min read