AutomaticTimeSeriesLoadModelAndPredict
- class hana_ai.tools.df_tools.automatic_timeseries_tools.AutomaticTimeSeriesLoadModelAndPredict(connection_context: ConnectionContext, return_direct: bool = False)
This tool load model from model storage and do the prediction.
- Parameters:
- connection_contextConnectionContext
Connection context to the HANA database.
- Returns:
- str
The JSON string of the predicted results table and the statistics.
Note
args_schema is used to define the schema of the inputs as follows:
Field
Description
predict_select_statement
The SQL select statement of the dataset to predict. If not provided, ask the user. Do not guess.
name
The name of the model. If not provided, ask the user. Do not guess.
version
The version of the model, it is optional
key
The key of the dataset. If not provided, ask the user. Do not guess.
exog
The exog of the dataset, it is optional
show_explainer
Whether to show explainer, it is optional
- name: str
Name of the tool.
- description: str
Description of the tool.
- connection_context: ConnectionContext
Connection context to the HANA database.