电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

类型WEKA数据分析实验

收藏

编号:342235969    类型:共享资源    大小:235.50KB    格式:DOC    上传时间:2022-12-25
  
10
金贝
分享到微信 分享到微博 分享到QQ空间
关 键 词:
WEKA 数据 分析 实验
资源描述:
WEKA数据分析实验 1. 实验简介 借助工具Weka 3.6 ,对数据样本进行测试,分类测试方法包括:朴素贝叶斯、决策树、 随机数三类,聚类测试方法包括:DBScan, K均值两种; 2.数据样本 以熟悉数据分类的各类常用算法,以及了解Weka的使用方法为目的,本次试验中,采 用的数据样本是Weka软件自带的“Vote”样本,如图: 3. 关联规则分析 1)操作步骤: a) 点击“Explorer”按钮,弹出“Weka Explorer”控制界面 b) 选择"Associate"选项卡; c) 点击“Choose”按钮,选择“Apriori”规则 d) 点击参数文本框框,在参数选项卡设置参数如: e)点击左侧“Start”按钮 2)执行结果: ===Run information 二二二 Scheme: Relation: Instan ces: weka.associations.Apriori -1 -N 10 -T 0 -C 0.9 -D 0.05 -U 1.0 -M 0.5 -S -1.0 -c -1 vote 435 Attributes: 17 han dicapped-i nfants water-project-cost-shari ng adopti on-o f-the-budget-resoluti on physician-fee-freeze el-salvador-aid religious-groups-in-schools an ti-satellite-test-ban aid-t o-n icaragua n-con tras mx-missile immigrati on synf uels-corporation-cutback education-spe nding superf un d-right-to-sue crime duty-free-exports export-administratio n-act-south-africa Class ===Associator model (full training set)=== Apriori Minimum support: 0.5 (218 instances) Minimum metric : 0.9 Number of cycles performed: 10 Generated sets of large itemsets: Size of set of large itemsets L(l): 12 Large Itemsets L(l): handicapped-infants二n 236 adoption-of-the-budget-resolution二y 253 physician-fee-freeze二n 247 religious-groups-in-schools二y 272 anti-satellite-test-ban=y 239 aid-to-nicaraguan-contras=y 242 synfuels-corporation-cutback=n 264 education-spending二n 233 crime=y 248 duty-free-exports=n 233 export-administratio n-act-south-africa=y 269 Class=democrat 267 Size of set of large itemsets L(2): 4 Large Itemsets L(2): adoption-of-the-budget-resolution二y physician-fee-freeze=n 219 adoption-of-the-budget-resolution二y Class=democrat 231 physician-fee-freeze二n Class=democrat 245 aid-to-nicaraguan-contras=y Class=democrat 218 Size of set of large itemsets L(3): 1 Large Itemsets L(3): adoption-of-the-budget-resolution二y physician-fee-freeze二n Class=democrat 219 Best rules found: 1. adoption-of-the-budget-resolution二y physician-fee-freeze二n 219 ==> Class=democrat 219 conf:(l) 2. physician-fee-freeze二n 247 ==> Class=democrat 245 conf:(0.99) 3. adoption-of-the-budget-resolution二y Class=democrat 231 ==> physician-fee-freeze二n 219 conf:(0.95) 4. Class=democrat 267 ==> physician-fee-freeze二n 245 conf:(0.92) 5. adoption-of-the-budget-resolution二y 253 ==> Class=democrat 231 conf:(0.91) 6. aid-to-nicaraguan-contras=y 242 ==> Class=democrat 218 conf:(0.9) 3)结果分析: a) 该样本数据,数据记录数435个,17个属性,进行了 10轮测试 b) 最小支持度为0.5,即至少需要218个实例; c) 最小置信度为0.9; d) 进行了 10轮搜索,频繁1项集12个,频繁2项集4个,频繁3项集1个; 4. 分类算法-随机树分析 1) 操作步骤: a) 点击"Explorer"按钮,弹出"Weka Explorer"控制界面 b) 选择u Classify "选项卡; c) 点击"Choose"按钮,选择"trees"弓"RandomTree"规则 d) 设置 Cross-validation 为 10 次 e) 点击左侧“Start”按钮 2) 执彳丁结果: ===Run information 二二二 Scheme:weka.classifiers.trees.RandomTree -K 0 -M 1.0 -S 1 Relation: vote Instan ces:435 Attributes:17 han dicapped-i nfants water-project-cost-shari ng adopti on-o f-the-budget-resoluti on physician-fee-freeze el-salvador-aid religious-groups-in-schools an ti-satellite-test-ba n aid-t o-n icaragua n-con tras mx-missile immigratio n synf uels-corporation-cutback education-spendi ng superf un d-right-to-sue crime duty-free-exports export-administratio n-act-south-africa Class Test mode:10-fold cross-validation ===Classifier model (full training set)=== Ran domTree el-salvador-aid = n | physicia n-fee-freeze = n | | duty-free-exports = n | | | anti-satellite-test-ban 二 n Illi synf uels-corporati on-cutback = n | | | | | crime = n: republican (0.9^/D) I I I I I crime = y | | | | | | handicapped-infants = n : democrat (2.0").01) | | | | | | handicapped-infants = y : democrat (0.0^43) Illi synf uels-corporation-cutback = y | | | | | handicapped-infants 二 n : democrat (0.79/3.01) | | | | | handicapped-infants = y : democrat (2.12/0) | | | anti-satellite-test-ban 二 y Illi adoption-of-the-budget-resolution 二 n | | | | | handicapped-infants 二 n : democrat (1.2^0.01) | | | | | handicapped-infants = y : republican( 1.25/0.25) Illi adoption-of-the-budget-resolution 二 y | | | | | handicapped-infants 二 n | | | | | | crime = n: democrat (5.94/D.01) | | | | | | crime = y: democrat (5.15/0.12) | | | | | handicapped-infants = y : democrat (36.99/0.09) | | duty-free-exports = y | | | crime = n: democrat (124.2^0.29) | | | crime = y Illi handicapped-infants = n : democrat (16.9/3.38) Illi handicapped-infants 二 y : democrat (8.99/0.02) | physicia n-fee-freeze = y | | immigration = n | | | education-spending 二 n Illi crime = n : democrat (1.09/0) Illi crime = y : democrat (1.01/0.01) | | | education-spending 二 y: republican( 1.0^/0.02) | | immigration = y | | | synf uels-corporati on-cutback = n Illi religious-groups-in-schools = n : republican (3.0加.02) Illi religious-groups-in-schools = y : republican( 1.54/104) | | | synfuels-corporation-cutback = y : republican (1.0®0.05) el-salvador-aid = y | synf uels-corporati on-cutback = n | | physicia n-fee-fre
展开阅读全文
提示  金锄头文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:WEKA数据分析实验
链接地址:https://www.jinchutou.com/shtml/view-342235969.html
关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.