Repository navigation
0.3.0
distill(route_budget=0.02)picks the confidence threshold for you, with a guarantee: with 95% probability, at most 2% of requests are answered locally and disagree with the teacher. The threshold is set on 30% of the judged pool held out of training, so it's checked on the model you actually save.decide(texts, fallback=d.ask)sends the documents below the threshold to the teacher and returns the same answer format.route=Trueleaves them asNoneinstead, and.local(texts)tells you which documents clear it.- The report now checks the locally answered test documents against your human labels.
examples/panels/routing_study.pyreproduces the results on the four pre-built panels from the committed teacher answers. Reading the threshold off the curve broke the 2% budget in 4-7 of 10 draws; the guaranteed threshold held about as often as a 95% bound promises. Details in BENCHMARKS.
Everything is opt-in. Existing code and saved models behave exactly as in 0.2.0, and models saved by 0.3.0 still load in 0.2.0.