stp
ies_pi_predict.api.stp
task_stp
task_stp(
building_url: str,
auth_token: str,
input_channels: list[str],
output_channel: str,
prediction_channel: str,
horizon_hours: int,
output_folder: str,
) -> dict[str, any]
task_predict is the task that calls the ies_pi_predict.predict function.
It processes the resulting dataframe by saving it in a csv file.
It needs to be in the global namespace to be able to be correctly picked
by the Worker.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
horizon_hours
|
int
|
same as |
required |
output_folder
|
str
|
The folder where to save the csv |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict[str, any]
|
{ "output_filename": str, "algorhythm": str, "score": float, "rmse": float, |
dict[str, any]
|
} |