The Scorecard Prediction component uses the model that is generated by the Scorecard Training component to predict scores.

Configure the component

You can use one of the following methods to configure the Scorecard Prediction component.

Method 1: Configure the component on the pipeline page

You can configure the parameters of the Scorecard Prediction component on the pipeline page of Machine Learning Designer of Machine Learning Platform for AI (PAI). Machine Learning Designer is formerly known as Machine Learning Studio. The following table describes the parameters.
TabParameterDescription
Fields SettingFeature ColumnsThe feature columns that are used in prediction. By default, all feature columns are selected.
Reserved ColumnsThe columns that are appended to the prediction result table without processing, such as the ID and objective columns.
Output Variable ScoreSpecifies whether to generate a score for each feature variable. The total predicted score is the score of intercept options plus the score of each variable.
TuningCoresThe number of CPU cores that are required. By default, the system determines the value.
Memory Size per CoreThe memory size of each CPU core. By default, the system determines the value.

Method 2: Use PAI commands

Configure the component parameters by using PAI commands. You can use the SQL Script component to call PAI commands. For more information, see SQL Script.
pai -name=lm_predict
    -project=algo_public
    -DinputFeatureTableName=input_data_table
    -DinputModelTableName=input_model_table
    -DmetaColNames=sample_key,label
    -DfeatureColNames=fea1,fea2
    -DoutputTableName=output_score_table
ParameterDescriptionRequiredDefault value
inputFeatureTableNameThe name of the input feature table. YesNo default value
inputFeatureTablePartitionsThe partitions that are selected from the input feature table. NoFull table
inputModelTableNameThe name of the input model table. YesNo default value
featureColNamesThe feature columns that are selected from the input table. NoAll columns
metaColNamesThe columns that do not need to be converted. These columns in the output are the same as those in the input. You can specify labels and sample IDs in the columns. NoNo default value
outputFeatureScoreSpecifies whether to generate the scores of variables in the prediction results. Valid values:
  • true: generates the scores of variables in the prediction results.
  • false: does not generate the scores of variables in the prediction results.
Nofalse
outputTableNameThe name of the output table. YesNo default value
lifecycleThe lifecycle of the output table. NoNo default value
coreNumThe number of cores. NoDetermined by the system
memSizePerCoreThe memory size of each core. Unit: MB. NoDetermined by the system

Output

The following figure shows a score table generated by the Scorecard Prediction component. Sample score tableThe churn column is the column appended to the result table from the input table. The data in this column does not affect the prediction results. The other three columns display the prediction results. The following table describes the three columns.
ColumnData typeDescription
prediction_scoreDOUBLEThe column that contains predicted scores. In a linear model, the feature values and model weight values are multiplied and summed up to obtain the predicted scores. In a scorecard model, if score transformation is performed, the transformed scores are generated in this column.
prediction_probDOUBLEThe column that contains the probability values of positive samples in binary classification. The probability values are transformed from the original scores (without score transformation) by using the sigmoid function.
prediction_detailSTRINGThe column that contains the probability values of positive and negative samples described in JSON strings. The value 0 represents negative, and the value 1 represents positive. Example: {"0":0.1813110520,"1":0.8186889480}.