Updated on 2024-11-29 GMT+08:00

Adding an Inference Variable

Scenario

RTDService supports inference variable calculation based on deep learning. Service managers can define inference variables in the following scenarios:

During real-time decision-making, events need to be classified and event types need to be determined. To do so, the system needs to connect to the inference platform to analyze and calculate the data of the event sources. After determining the similarity of each type, the system returns a value that can be used by stored procedure rules for deep learning.

Inference variable information includes the name, inference platform address, and inference type returned by the platform.

Procedure

  1. Log in to the RTD web UI as a service user and select a tenant. For details, see Accessing the RTDService Web UI.
  2. Choose Business Management > Variable and Rule Configuration > Inference Variables.
  3. Click Add and set the required parameters by referring to the following table.

    Table 1 Parameters for creating an inference variable

    Parameter

    Description

    Event Source Type

    Type of the event source to which the variable belongs

    Name

    Variable name

    NOTE:
    • The variable name should speak for itself.
    • The variable name is case insensitive and must start with a letter or underscore (_). A name can contain a maximum of 30 characters, including [A-Z], [a-z], [0-9] and _.

    Inference Variable Address

    Address of the inference service that is deployed on the inference platform

    NOTE:
    • The address is that of the inference platform. During the calculation, data is sent to this address for processing.
    • The value is an HTTP address and cannot contain invalid characters, for example, http://192.168.0.100:5000/api.

    Description

    Description of an inference variable

    Inference Type

    Analysis type returned by the inference platform. Each inference variable can have multiple inference types, and each inference has a default value which can be invoked by a model.

    NOTE:

    Choose Add next to Inference Type. The inference type name must meet the following requirements:

    • The prefix of the name must be mv_.
    • The name is case insensitive and must start with a letter or underscore (_). The name can contain 4 to 255 characters, including [A-Z], [a-z], [0-9] and _.

  4. Click OK.

    You can select an inference variable on the inference variable page and choose More > Online or Offline to bring the variable online or take it offline.