Python 3.x 市场篮子分析绩效

Python 3.x 市场篮子分析绩效,python-3.x,data-science,market-basket-analysis,Python 3.x,Data Science,Market Basket Analysis,我的市场篮子分析有问题,我的代码以1%的最小值获得频繁的产品集,这在运行中是永久性的。以下是脚本: frequent_itemsets = apriori(basket_sets, min_support=0.01, use_colnames=True) rules = association_rules(frequent_itemsets, metric="lift") rules.sort_values('confidence', ascending = False, inplace = T

我的市场篮子分析有问题,我的代码以1%的最小值获得频繁的产品集,这在运行中是永久性的。以下是脚本:

frequent_itemsets = apriori(basket_sets, min_support=0.01, use_colnames=True)
rules = association_rules(frequent_itemsets, metric="lift")
rules.sort_values('confidence', ascending = False, inplace = True)
rules.head(10)
请告诉我如何更正此错误以使其更快


您好,

请停止叫喊。所有大写字母的文字都更难阅读和理解,大声喊叫也不会让你更快地得到答案。当你请求免费帮助时,来这里对我们大喊大叫也有点不礼貌。谢谢。也许我很愚蠢,但我不知道什么是先验函数或关联规则(来自哪个库?、熊猫?我不想让它知道:D,因为这不是我的工作。)。