predict
ies_pi_predict.api.predict
task_predict
task_predict(
df: DataFrame,
output_column: str,
predict_start: datetime,
predict_end: datetime,
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 |
|---|---|---|---|
df, output_column, predict_start, predict_end
|
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]
|
} |