predict_batch
Predict target values for multiple parts in one batch call. Pass feature dictionaries for each part to get per-row predictions, with optional confidence intervals and explanations.
Instructions
Predict the target value for multiple parts at once.
More efficient than calling predict repeatedly. Pass a list of
feature dictionaries, one per part. Returns one prediction per row.
Optionally enriches every row with the same views the single-part tools
give, so you don't have to fan out to explain / predict_interval:
- coverage (1-99): adds a likely-price range per row (conformal interval)
when the model carries calibration data; read `interval.reliability`
and `interval.say_to_user` per row exactly as predict_interval does.
Left None (default) for plain point predictions.
- with_explanation: adds the per-row price drivers (same `explanation`
shape as explain). Surface the high-importance, correctly-signed
drivers in dollars/percent; never say 'SHAP' to a category manager.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| coverage | No | ||
| model_id | Yes | ||
| with_explanation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |