concept confidence in category recommender system
appears as: confidence, confidence

This is an excerpt from Manning's book Practical Recommender Systems.
Listing 5.8. Calculating support and confidence for the frequency sets
def calculate_support_confidence(transactions, min_sup=0.01): N = len(transactions) #1 one_itemsets = calculate_itemsets_one(transactions, min_sup) #2 two_itemsets = calculate_itemsets_two(transactions, one_itemsets, min_sup) #3 rules = calculate_association_rules(one_itemsets, two_itemsets, N) #4 return sorted(rules) #5
Association rules are based on what is bought together and used to show Frequently Bought Together (FBT) recommendations. The usefulness of the rules is calculated by looking at the indicators support and confidence.
Now to make things more interesting, let’s buy another item on the list of association rules so that the recommendations are updated. A bit of a trick exists here. If you bought the most popular item, the confidence of the association rules already used will be much greater than the others, so before you start throwing something out the window if it doesn’t change anything, look at the confidence indicator first.