AdditiveModelForecastLoadModelAndPredict

class hana_ai.tools.hana_ml_tools.additive_model_forecast_tools.AdditiveModelForecastLoadModelAndPredict(connection_context: ConnectionContext, return_direct: bool = False)

This tool is used to load the additive model forecast from model storage and predict.

Parameters:
connection_contextConnectionContext

Connection context to the HANA database.

Returns:
str

The name of the predicted results table.

Note

args_schema is used to define the schema of the inputs as follows:

Field

Description

predict_table

The name of the table containing the prediction data.

predict_schema

The schema of the predict_table, it is optional.

key

The key column in the prediction table.

name

The name of the model to load.

version

The version of the model to load.

exog

External regressors to include in the prediction.

logistic_growth_capacity

Capacity for logistic growth.

interval_width

Width of the prediction intervals.

uncertainty_samples

Number of uncertainty samples to draw.

show_explainer

Whether to show the explainer.

decompose_seasonality

Whether to decompose seasonality.

decompose_holiday

Whether to decompose holiday effects.

name: str

Name of the tool.

description: str

Description of the tool.

connection_context: ConnectionContext

Connection context to the HANA database.