Thus, the a priori algorithm is no longer modern for the analysis of a market basket (aka Association Rule Mining ). The methods have improved, although the Apriori principle (that support for a subset of the upper limit supports the set) is still the driving force.
In any case, how association rules are used to generate recommendations is that, given a certain set of elements of the story, we can check each antecedant rule to see if it is contained in the story. If so, then we can recommend this rule (except when the subsequent data is already in the history, of course).
We can use various indicators to rank our recommendations, since with many rules we can have many hits when comparing them with history, and we can only make a limited number of recommendations. Some useful metrics are rule support (which coincides with support for combining the antecedent and the subsequent), confidence in the rule (support of the rule over the support of the antecedent), and rule raising (support of the rule over the product of supporting the antecedent and the subsequent), among others.
source share