Modeling Guide

modelRepoClient

Performs the OAuth2 authentication using oauthClientId and oauthClientSecret on oauthTokenUrl and sends the request to the server. Uploads the SavedModel received at the inport to the MLF Model Repo, if training was successful in the previous step. The server responds with the model repo upload status.

Configuration Parameters

Parameter

Type

Description

oauthClientId

string

Client ID used for the OAuth2 authentication.

oauthClientSecret

string

Client Secret used for the OAuth2 authentication.

oauthTokenUrl

string

Url for the address where the OAuth2 authentication will be performed.

modelRepoAPI

string

Url where the model is uploaded to and the upload status acquired

modelName

string

Internal model identifier. If left blank it is the same as in modelRepoStatus.

version

string

API Version

checkStatus bool Check if the header status from the input is "succeeded". Should be true when the input comes from a trainingCient.

Input

Input

Type

Description

config

message

Input to dynamically change the configurations. Only the message headers are considered. If a field has the same field as the config, it is overridden

trainingStatus

message

Message headers correspond to training API response. Connection with MLF Training Operator is expected. For example:
{"checkSum":null,"fileName":"","id":"","metaData":null,"modelName":"","modelStatus":"INACTIVE","namespace":"","statusCode":201,"trainingInfo":{"id":""},"uploadDate":"","version":"50"}

Output

Output

Type

Description

modelRepoStatus

message The model repo upload status is in message headers.