mix spectre.classifier.train (Spectre v0.3.0)

Copy Markdown View Source

Trains Spectre's local classifier artifact from a JSON dataset.

Dataset rows must contain "text" and either "label" or "intent".

Usage

mix spectre.classifier.train training/dataset.json artifacts/spectre

Options

  • --model - embedding model id.
  • --accept-threshold - minimum top score for normal acceptance.
  • --margin-threshold - minimum gap between first and second score.
  • --high-confidence-threshold - score that accepts regardless of margin.