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

Adding a Scoring Model

Scenario

RTDService supports score calculation models using the Predictive Model Markup Language (PMML). Service managers import a scoring model file (in PMML) trained offline to the RTD platform for real-time message data calculation and processing by a scoring model. The results can be used as model variables by stored procedure rules.

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 Variable and Rule Configuration > Model Variables > PMML Model.
  3. Click Add and set the required parameters by referring to the following table.

    Table 1 PMML model parameters

    Parameter

    Description

    Event Source Type

    Event source type of the scoring model

    Name

    Model name

    Description

    Model description

    PMML File Path

    Path that storing the PMML file. Click upload to add a PMML model file.

    Model Constraint Verification

    (Optional) Whether to forcibly verify the model constraint configuration. By default, this function is enabled.

    Model Input-Parameter Dependency

    (Optional) Third-party platform on which a model depends. The default value is None. You can select Feature Variable Platform.

    Click Check to check the validity of the PMML model file. You can view the PMML model score, including Model Summary, Model Parameter Information, and Model Check Information.

    If the file fails the check, modify the file as prompted and check again.

  4. Click OK.

    You can select the added model on the PMML Model page and choose More > Online or Offline to bring the model online or take it offline.

    Before creating a model, you need to bring the event source of the model online.