Rule Type: Recommendation
-
The support of a rule is the number of records verifying the rule. With a rule of the form X =>Y, the support is the count of records containing the item set X and the attribute Y.
-
The confidence of a rule is the percentage of records verifying the consequent of the rule among those verifying the antecedent of the rule. With a rule of the form X => Y, the confidence is the count of records containing the item set X and the attribute Y in relation to the count of records containing only the item set X.
Although several rules can lead to the same recommendation, only the metrics corresponding to the rule with the best predictive power (KI) are provided for each recommendation.
The Recommendation rule type creates a model that allows you to perform predictions using the desired input dataset and specifically, to derive recommendations by exploring categorical data, known as items. The function provides clear and useful results, for instance for market basket analysis. It showst the relationships between products or services and immediately suggests appropriate actions.
Once a Recommendation rule type is properly configured and activated, you can run this function and apply recommendation models to the input dataset. Afterwards, the models process input data and determine recommendations for configured user IDs and items in the dataset.
Rule Input Fields
-
User ID: A list of users for which to determine the recommendations.
-
Item: Fields identifying the user’s items in the dataset.
-
Minimum Support: Minimum value of support to be considered in the association rules. This field requires an integer and the default value is 2.
-
Minimum Confidence: Minimum value of confidence to be considered in the association rules. It allows you to indicate the minimum confidence that a rule must have to be used as a recommendation. The default value is 0.5.
-
Segmented By: Specifies the fields according to which the whole input data is to be segmented. An independent recommendation model is trained for each segment. This means an independent segmentation into recommendation is found. If this list is empty, the whole input dataset is considered as one segment by default.
Rule Output Fields
-
Recommended Item: Items recommended by the rules.
-
Recommender Name: The name of the recommender.
-
Recommendation Rule ID: The ID of the recommendation rules.
-
Recommendation Score: The resulting recommendation scores.
-
Model: Returns the unique ID of the trained model. It is of characteristic type and users are recommended to use a length of 30.
Further Reference
SAP HANA Automated Predictive Library Reference Guide, version 1902 or later.