The data mining functions can produce a score for a single record, as shown in Example 6-4 and Example 6-5.
Example 6-4 returns a prediction for customer 102001 by applying the classification model NB_SH_Clas_sample
. The resulting score is 0, meaning that this customer is unlikely to use an affinity card.
Example 6-5 returns a prediction for 'Affinity card is great' as the comments attribute by applying the text mining model T_SVM_Clas_sample
.The resulting score is 1, meaning that this customer is likely to use an affinity card.