get_code
Retrieve the exact Python script behind a forecasting plan, cross-validation strategy, backtest, forecast, or comparison—either the code that ran or the code that would run.
Instructions
Return the Python script of an object: the one that ran, or that would run for a plan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| candidate | No | For a comparison, the candidate whose script to return. Null for the best one. | |
| object_id | Yes | Id of a plan (its forecasting script), a cross-validation strategy (the code that builds it), a backtest, a forecast or a comparison (the script that ran). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| code | Yes | ||
| kind | Yes | ||
| files | No | ||
| candidate | No | ||
| requirements | No | ||
| code_truncated | No |