我试图使用R程序中的apriori算法运行一个关联规则模型。我的数据要么是txt文件格式,要么是csv文件格式。我的数据一般是这样的。数据通常被读取到R中。> m1 <- apriori("Trial.txt") no method or default for coercing“character” to “transactions”
我认为如何将数据输入<
大家好,我正在做一个项目。我需要对如下所示的普查数据执行关联规则挖掘。
--我使用的是mlx趋向库中的Apriori算法。pandas as pdfrom mlxtend.frequent_patterns import aprioriDataframe of Support and Element name
df2 = pd.DataFrame(te_ary, columns=te.colu