Skip to content

0.4.0

Choose a tag to compare

@sshah03 sshah03 released this 02 Nov 18:44
· 5 commits to main since this release
  • Several teachers, weighted by how well they match you. Give Decisions a 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 with label(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, and load(dir).predict(texts, fallback=proj.ask) sends the rest to the teacher. shrewd.route.curve() and rebudget() change the limit later without retraining.
  • Review and editing in code. review() and unreview() record or take back your answers without editing needs_review.csv. add_examples(), fix_example() and remove_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 what load() 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.