Modeling Guide for SAP Data Hub

Model Consumer

The Model Consumer operator is to consume a model in the model repository. It can take the model name and model version either from input port ('input' mode) or configuration ('conf' mode) and give the path of the model as its output.

Configuration Parameters

Parameter

Type

Description

opMode string Operation mode of the operator. If its value is 'conf' the model with modelName and modelVersion written in the configuration parameters is served. If its value is 'input' the model name and model version is taken from the input ports.

Default: "conf"

modelName string The name of the model to be consumed. This configuration parameter is used only in 'conf' mode.

Default: ""

modelVersion string The version of the model to be consumed. This configuration parameter is used only in 'conf' mode.

Default: "latest"

pollPeriodInMs

string

Period in ms to serve the model. It is only valid in 'conf' mode.

Default: 1000

Input

Input

Type

Description

inModelName

string

The name of the model to be consumed. Used only in 'input' mode.

inModelVersion

string

The version of the model to be consumed. Used only in 'input' mode.

Output

Output

Type

Description

outModelPath

string

The path of the consumed model in the model repository.