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:
Claude
2026-12-01 23:57:00 +05:30
committed by asmhatre
parent dc94d7fece
commit 5323e6c71a
37 changed files with 1445 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Three classic classifiers and a baseline on the same split
dataset: 3000 synthetic tickets, 2401 train / 599 test, 5 balanced classes (see 01-dataset.txt)
timings are from one run on one machine and drift between runs; accuracy and F1 do not
model accuracy macro-F1 train ms median us p99 us model KB
Majority-class baseline 0.2020 0.0672 5 0.1 0.4 -
Tribuo LogisticRegression (SGD) 0.9232 0.9233 1141 13.9 93.2 58.9
Smile LogisticRegression 0.9182 0.9182 2796 7.3 45.2 10.1
Smile DiscreteNaiveBayes 0.9048 0.9049 49 7.5 31.9 16.9
## Tribuo's own evaluator against ours
Tribuo LabelEvaluator accuracy : 0.9232
harness Metrics accuracy : 0.9232
Tribuo LabelEvaluator macro F1 : 0.9233
harness Metrics macro F1 : 0.9233