Scoring is the process of applying a mining model to new data records to compute the appropriate results. The scorer operator can use all types of models (Associations and Sequence Rules, Clustering, Classification, and Regression) that are stored in the Db2® model tables to score input data. Mining models are usually created by the model builder operators (refer to Model builders), or imported into the mining database using the model management functions (refer to Importing mining models).
For an example of how to use the scorer operator, refer to the tutorial Assigning a customer group ID to each customer (scoring).
Depending on the mining model to be applied, the scorer operator uses different mining functions and computes corresponding results for the new data records. The following figure shows an example where the scorer operator uses a clustering model to assign a CLUSTER_ID to each record in the input table.

When a rule model is applied, the scorer input port expects a transaction table containing the items already present in the transactions used to train the rule model. The output port has a fixed layout that contains the rules that match for these items.
The clustering function groups data records on the basis of their similarity. When a model is applied, the scorer assigns a cluster ID, a cluster score, a quality value, and a confidence value to each individual record being scored. The cluster score, quality value, and confidence value are different measures that indicate how well the record fits into the assigned cluster. For example, the cluster ID can then be used to send a personalized mailing to only the customers with a specific cluster ID value based on the characteristics of this cluster.
Classification is the process of automatically creating a model of classes from a set of records that contain class labels. The classification technique analyzes records that are already known to belong to a certain class, and creates a profile for a member of that class from the common characteristics of the records. You can then use the scorer to apply this model to new records, that is, records that have not yet been classified. This enables you to predict if the new records belong to that particular class. When a classification model is applied, the scorer assigns a class label and a confidence value to each individual record being scored.
Regression is similar to classification except for the type of predicted value. Classification predicts a class label; regression predicts a numeric value. Regression also can determine the input fields that are most relevant to predict the target field values. The predicted value might not be identical to any value contained in the data that is used to build the model. An example application is customer ranking by expected profit. When a regression model is applied, the scorer assigns a predicted value to each customer being scored.