predict_interval
Get a likely range for a part's price using conformal prediction. Use the band width to judge trust—tight means predict with confidence, wide means request a quote.
Instructions
Predict with a likely range (conformal prediction interval).
For a 90% interval, about 9 in 10 similar parts fall within the range.
coverage is an integer 1-99 (default 90). Requires a model trained with
P2Predict v0.5+ (which stores calibration data).
Reading it for the user: the band WIDTH is the per-part trust signal, and
the payload computes it for you — `interval.reliability`
('trust' | 'caution' | 'quote') and a plain `interval.say_to_user` sentence
you can quote directly. A tight band = predict with confidence; a very wide
band — or a lower bound at/below $0 on an additive (non-log) model — means
"get a quote, don't benchmark." Always surface the range, not just the point
estimate, when the user will act on the number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coverage | No | ||
| features | Yes | ||
| model_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |