fit
Fit an estimator to data using feature and target handles. Supports forecast horizon and async background execution.
Instructions
Fit an estimator on data. Provide explicit X_handle and/y_handle (or datasets) depending on the estimator's scitype.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"estimator_handle": "<estimator_handle>"
},
"name": "fit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fh | No | Optional: Forecast horizon (e.g. 12 or [1,2,3]) to pass to fit | |
| X_handle | No | Optional: Handle from load_data_source for X data (features, panel, etc.) | |
| y_handle | No | Optional: Handle from load_data_source for y data (target, labels, etc.) | |
| X_dataset | No | Optional: Demo dataset name for X data | |
| run_async | No | If True, runs the fit asynchronously in the background and returns a job_id. | |
| y_dataset | No | Optional: Demo dataset name for y data | |
| estimator_handle | Yes | Handle from instantiate_estimator |