fineTuning.
Its datasets.create takes the file’s text rather than its path, and families.create takes one
object with the API’s field names (Python and TypeScript). Each step’s guide shows the HTTP request.
1. Build a dataset
Each row is a decide request, itscontext and decisions, plus targets. targets is the
answer you expect, as a probability for every outcome. Write one row per line of a JSONL file:
tickets.jsonl
2. Measure the base model
metrics has accuracy, log loss and calibration error on the held-out rows. An evaluation is
charged as decisions. Compare models covers several models at once, and
what each field of metrics means.
If the model picks one outcome too often, try weighting the outcomes
before you train.
3. Try clearer wording
The free linter checks how a decision is asked, without running a model:4. Train a model of your own
A fine-tune trains a model on your rows and starts a family. A family is a named line of models, such assupport-router.
The new model joins the family only if it passes its gate. The gate checks for regressions against
the model it started from, on the held-out rows. A family needs enough training rows, and enough
held-out decisions for the gate to judge (what the start checks).
support-router get the family’s latest model that passed its gate.
Fine-tune a model shows how to read the gate.
