AutomaticTimeSeriesLoadModelAndPredict

class hana_ai.tools.hana_ml_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_table

The table to predict. If not provided, ask the user. Do not guess.

predict_schema

The schema of the predict_table, it is optional.

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.