Calibration Auto Calibrate From Erp
calibration_auto_calibrate_from_erpDestructive
ERP-native variant of auto-calibrate: accepts the raw columns most ERPs export (part_number, work_order_id, quantity, total_cost) and handles part-number resolution + unit-cost derivation server-side. Idempotent on work_order_id.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env_id | Yes | ||
| holdout_pct | No | Fraction of rows held out to size the prediction interval. | |
| work_orders | Yes | Up to 20 000 raw ERP work-order lines. Designed for the AI-agent ERP-import use case: pull tenant's last 12 months of WIP_DISCRETE_JOBS rows, POST them once, and the service resolves part numbers, decomposes setup vs variable cost from the lot-size diversity, and returns a calibrated env. | |
| target_alpha | No | Target miss rate for the prediction interval (0.10 → a 90% interval). |