r - 显示随机数字项目集中的先验市场篮子
问题描述
嗨,我已经在 r 中运行了先验协会
#设置规则
association.rules = apriori(tr, parameter = list(supp=0.001, conf=0.10,minlen = 2,
maxlen=5, target = "rules"))
#去除多余的规则
association.rules <- association.rules[!is.redundant(association.rules)]
rules_dt <- data.table( lhs = labels( lhs(association.rules) ),
rhs = labels( rhs(association.rules) ),
quality(association.rules) )[ order(-lift), ]
知道为什么某些项目集显示为数字吗?
LHS {107048} RHS {REPLACED BY 68407}
{CHEF TORCH HEAD} {GAS CARTRIDGE}
我注意到这对数字的置信度为 1 而其余的则更少
summary (tr)
includes extended item information - examples:
labels
1 10
2 100 FLOWER HONEY/ TOMIZ 110G
3 107048
解决方案
推荐阅读
- php - PHP从HTML中的表中获取值
- c++11 - C++ 编译器错误:“之前的声明符无效”
- javascript - 如何分别获取 Box shadow 每个值?
- angular - Ionic 4 推送通知弹出窗口未显示
- python - 导入日期时间与从日期时间导入日期时间
- javascript - 如何将此主要 js 添加到模板标签而不引发标签错误?
- scala - Spark-scala Join 的问题。寻找更好的方法
- php - 使用正确的填充时 Mpdf 自动分页符
- uiimage - 当我尝试将缓冲区样本转换为 UIImage 时,iOS 广播扩展随机崩溃
- google-ads-api - 如何获得谷歌关键字的准确搜索量?