Selected
A canonical category ID with the evidence the provider reported for it: an optional confidence and an optional distribution over the categories. Nothing is inferred. Confidence is finite and in 0,1, without a calibration guarantee. A distribution has unique category ids, sums to 1 within 1e-6 and includes the selected id. Direct construction cannot check membership in a spec; providers should use ClassificationSpec.selected, and consumers can validate against the spec, which also requires a distribution to cover exactly the spec's categories.
Constructors
Properties
the selected category id
the provider's confidence, in 0..1, when reported
The per-category probabilities the provider reported, in the order given. The list is an unmodifiable copy. JSON leaves out an empty distribution.
the model that selected it