predict_from_csv
Batch-predict prices for every row in a local CSV file. Returns point estimates per row, with optional confidence intervals and price-driver explanations.
Instructions
Batch-predict from a CSV file on the local filesystem.
The file-based sibling of predict_batch — use it when the user drops a
spreadsheet of parts. Reads csv_path, predicts every row, and returns one
prediction per row (point estimates by default).
The same opt-in enrichments as predict_batch apply per row:
- coverage (1-99): adds a likely-price range per row (conformal interval)
with its `interval.reliability` / `interval.say_to_user` read. Requires
a model with calibration data; an explicit coverage on an uncalibrated
model returns a no_calibration error. Left None (default) for plain
point predictions.
- with_explanation: adds the per-row price drivers (same `explanation`
shape as explain). State drivers in dollars/percent; never say 'SHAP'
to a category manager.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coverage | No | ||
| csv_path | Yes | ||
| model_id | Yes | ||
| with_explanation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |