A model management tool. hanaml.ModelStorage includes methods for saving and versioning the model from trained PAL model on SAP HANA.

hanaml.ModelStorage(conn.context, schema = NULL, meta.tbl = NULL)

Arguments

conn.context

ConnectionContext
The connection to the SAP HANA system.

schema

character, optional
The schema to persist models.
Defaults to current schema.

meta.tbl

character, optional
The table to store meta data of models.
Defaults to the table "HANAML_R_API_MODEL_STORAGE_META_TBL".

Value

An object of R6Class with methods for hanaml.ModelStorage.

Methods

SaveModel(model, name, version, force = FALSE)

Save a PAL model in the SAP HANA.
Usage: model.storage$SaveModel(model = model, name = "RDT", version = 1)
Arguments:

  • model: A hanaml function object with fitted model.

  • name: The model's name.

  • version: The model's version.

  • force, optional: If TRUE, the existing model will be replaced by the latest model. Defaults to be FALSE.

ListModels(name = NULL)

Returns a DataFrame of the meta data of the saved models.
Usage: model.storage$ListModels()
Arguments:

  • name, optional: The model's name. Defaults to NULL.

Returns: DataFrame A Dataframe of the meta data of the saved models.

DeleteModel(name, version)

Delete the model defined in the model storage.
Usage: model.storage$DeleteModel("RDT", 1)
Arguments:

  • name: The model's name.

  • version: The model's version.

LoadModel(name, version)

Load a model defined in the model storage.
Usage: model.storage$LoadModel("RDT", 1)
Arguments:

  • name: The model's name.

  • version: The model's version.

Returns: DataFrame An object of R6Class with methods for PAL functions.