- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
一个食品连锁店每周的事务记录如下表所示,其中每一条事务表示在一项收款机业务中卖出的项目,假定supmin=20%,confmin=40%,使用Apriori算法计算生成的关联规则,标明每趟数据库扫描时的候选集和大项目集。
?
事务
项目
事务
项目
? ??T1
??? T2???????????????????
??? T3
面包、果冻、花生酱
面包、花生酱
面包、牛奶、花生酱
??? T4
??? T5
啤酒、面包
啤酒、牛奶
?
解:(1)由I={面包、果冻、花生酱、牛奶、啤酒}的所有项目直接产
生1-候选C1,计算其支持度,取出支持度大于supmin的项集,形成1-频繁集L1,如下表所示:?
项集C1
支持度
项集L1
支持度
{面包}
{花生酱}
{牛奶}
{啤酒}
4/5
3/5
2/5
2/5
{面包}
{花生酱}
{牛奶}
{啤酒}
4/5
3/5
2/5
2/5
(2)组合连接L1中的各项目,产生2-候选集C2,计算其支持度,取出支持度小于supmin的项集,形成2-频繁集L2,如下表所示:
项集C2
支持度
项集L2
支持度
{面包、花生酱}
3/5
{面包、花生酱}
3/5
至此,所有频繁集都被找到,算法结束,
所以,confidence({面包}→{花生酱})=(4/5)/(3/5)=4/3 confmin
confidence({ 花生酱}→{面包})=(3/5)/(4/5)=3/4 confmin
所以,关联规则{面包}→{花生酱}、{ 花生酱}→{面包}均是强关联规则。
The following shows a history of customers with their incomes, ages and an attribute called “Have_iPhone”indicating whether they have an iPhone. We also indicate whether they will buy an iPad or not in the lastcolumn.
No.?? Income????? Age??? ?Have_iPhone?? Buy_iPad1??????? high??????? young?????? yes?????????????? yes2??????? high?????? ?old???????????yes?????????????? yes3??????? medium?? young?????? no??????????????? yes4??????? high????? ? old??????????? no??????????????? yes5??????? medium?? young?????? no?????????????? ?no6??????? medium?? young?????? no??????????????? no7??????? medium?? old?????????? no????????????????no8??????? medium?? old?????????? no??????????????? no(a) We want to train a CART decision tree classifier to predict whether a new customer will buy an iPad or not. We define the value of attribute Buy_iPad is the label of a record.(i) Please find a CART decision tree according to the above example. In the decision tree, wheneverwe process a node containing at most 3 records, we stop to process this node for splitting.(ii) Consider a new young customer whose
您可能关注的文档
最近下载
- 汤显祖和牡丹亭.pptx VIP
- 2024年春江苏开放大学Android基础050324第三次形考作业.doc VIP
- 冠状动脉CT血管成像在慢性冠脉综合征的风险分层和诊疗中应用的专家共识.pptx
- 上海市浦东新区华东师范大学第二附属中学2024届高一数学第一学期期末考试试题含解析.doc VIP
- 中级商务汉语 全套课件.PPT VIP
- 中国式现代化党课学习主题教育.pptx VIP
- 行政事业单位审计存在的常见问题与对策.pptx VIP
- 营养科患者营养评估.pptx VIP
- IPC-A-610E-2010 国外国际标准.pdf
- 2024-2025学年高中信息技术(信息科技)必修1 数据与计算沪科版(2019)教学设计合集.docx
原创力文档


文档评论(0)