Repository navigation
0.4.0
- Several teachers, weighted by how well they match you. Give
Decisionsa list of teachers and each answers every document, your dev split included; their answers are combined per question by how often each matched your labels. Classifiers get the same withlabel(pool, combine="weighted"). For panels,judge(pool, escalate=0.05)asks the first teacher everywhere and the others only where it might be overruled. - Check the teachers first.
check_teachers()has each teacher answer only your dev split, so you see how each one matches you before paying for the pool. - Routing for classifiers.
distill(route_budget=0.02)sets a confidence threshold with the same guarantee panels already had, andload(dir).predict(texts, fallback=proj.ask)sends the rest to the teacher.shrewd.route.curve()andrebudget()change the limit later without retraining. - Review and editing in code.
review()andunreview()record or take back your answers without editingneeds_review.csv.add_examples(),fix_example()andremove_examples()change your examples without re-splitting. Labels and questions can be changed, merged or removed in place. - Smaller things.
prune(dir)strips a shipped project down to whatload()needs.checkpoint_dir=lets an encoder fine-tune resume after an interruption.Decisions.compare()ranks featurizations on dev. A score answer keyed by its level name ("low") is now read instead of dropped. model2vec is pinned below 0.10, which can't load the pre-built embed panels.
Backward compatible: existing calls, defaults, saved models and answers are unchanged, and models saved by 0.4.0 load in 0.3.1.