Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up第11章_Apriori算法 - ApacheCN #434
Comments
|
输出所有可能的候选项集 Ck的算法有错误吧,例如输入{0,1,2}, {1,2,3}K=4,此时应该有输出{0,1,2,3},提供的算法只比较列表的前两项,L1==L2才会输出 |
|
生成候选集的 createC1(dataSet)函数返回值应改成return list(map(frozenset, C1)),否则只能返回obj |
https://ailearning.apachecn.org/#/docs/ml/11.使用Apriori算法进行关联分析
ApacheCN 专注于优秀项目维护的开源组织