Add classic-ml-vs-llm module: Tribuo 4.3.2 and Smile 7.3.0 text classifiers, a zero-shot LLM client and a cost model
Seeded synthetic support tickets in five categories; Tribuo and Smile logistic regression and Smile naive Bayes against a majority baseline; skewed classes, train/test duplicates, vocabulary drift and the three different answers to a ticket of unseen words; a zero-shot client for OpenAI-compatible endpoints tested against a fake endpoint (no model was called) and a cost formula with assumed prices. Every figure is written to output/ by the tests that assert it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Tribuo logistic regression: where the mistakes go
|
||||
rows are the true category, columns the predicted one
|
||||
|
||||
actual\pred BILLING ACCESS BUG FEATURE CANCEL
|
||||
BILLING 108 1 3 2 4
|
||||
ACCESS 1 111 3 2 1
|
||||
BUG 1 1 116 1 2
|
||||
FEATURE 2 4 5 107 3
|
||||
CANCEL 1 4 5 0 111
|
||||
|
||||
BILLING precision 0.956 recall 0.915 F1 0.935
|
||||
ACCESS precision 0.917 recall 0.941 F1 0.929
|
||||
BUG precision 0.879 recall 0.959 F1 0.917
|
||||
FEATURE precision 0.955 recall 0.884 F1 0.918
|
||||
CANCEL precision 0.917 recall 0.917 F1 0.917
|
||||
Reference in New Issue
Block a user