Weka Project
มหาวิ�ทยาลัยศรี�นครี�นทรีวิ�โรีฒ คณะวิ�ทยาศาสตรี�
นางสาวิปิ�ยดา ปิ�ญจปิรีะการี54102010350
CP463 Artificial Intelligence
วิตถุ�ปิรีะสงค�• เพื่"#อศ%กษาการีใช้)งานโปิรีแกรีม Weka
3.7 การี Classify
การี Cluster
การี Associate
ด)วิยข้)อม,ลัในใบรีบเสรี.จข้องสมาช้�กภายในกลั�0มจากรี)าน7-eleven
การีเตรี�ยมข้)อม,ลั1. เก.บใบเสรี.จข้องตวิเองรีวิมกบเพื่"#อน
2. กรีอกข้)อม,ลัลัง ใน Excel แลัะแช้รี�
ลังใน Google Drive
3. ปิรีบข้)อม,ลัให) เหมาะกบ Weka
(.csv)
• ข้)อม,ลัส2าหรีบ Train
จ2านวิน 45 record 38 Attributes
• ข้)อม,ลัส2าหรีบ Test
จ2านวิน 7 record 38 Attributes
การี Classify
โดยก2าหนดให)ทดสอบ Class Date
ใช้) Algorithm Back Propagation Neuron Network
(functions.MultilayerPerceptron) ในการี Train
• ผลัสรี�ปิ Correctly Classified Instances 28 62.2222 % Incorrectly Classified Instances 19 37.7778 %
• ค0าควิามแม0นย2า แลัะค0าควิามถุ,กต)อง
ผลัจากการี Train
Precision Recall class
0.357 0.455 1to10
0.742 0.742 21to31
0.000 0.000 11to20
ข้)อม,ลั Date จรี�ง ข้)อม,ลั Date จากTest
21to31 1to1021to31 21to3121to31 21to3121to31 21to311to10 21to3111to20 21to3111to20 21to31
ควิามถุ,กต)อง 42.8571 %
ผลัจากการี Test
• ใช้)ข้)อม,ลัท1งหมด 52 Record 29 Attributes
• ใช้) Algorithm SimpleKMeans ในการี Cluster
การี Cluster
จ2านวิน Cluster ท�#เหมาะสมท�#ส�ด ค"อ 20 เพื่รีาะค0า Squared
errors ในช้0วิงจ2านวิน Cluster ท�#เท0ากบ 20 ลั,0ลังมาก ท2าให)เก�ดKnee Curve แลัะสามารีถุแบ0งกลั�0มได)จ2านวินมากท�#ส�ด
ผลัจากการี Cluster
• ใช้)ข้)อม,ลัท1งหมด 52 Record 29 Attributes
• ใช้) Algorithm Apriori ในการี Associate
การี Associate
Association Rule Confidence Lift
Branch=HappyLand 11 ==> Sex=Female 11 1 1.68
Date=21to31 Branch=HappyLand 9 ==> Gender=Female 9 1 1.68
Time=15.01-19.00 Branch=HappyLand 8 ==> Gender=Female 8
1 1.68
Date=21to31 Unif=t 7 ==> Gender=Female 7 1 1.68
Branch=SWUPrasarnmit DrinkingWater=t 7 ==> Gender=Male 7
1 2.48
Date=21to31 Time=15.01-19.00 Branch=HappyLand 7 ==> Gender=Female 7
1 1.68
Time=7.01-11.00 Gender=Female 6 ==> Date=21to31 6 1 1.49
Time=11.01-15.00 Branch=SWUPrasarnmit Gender=Female 6 ==> Date=21to31 6
1 1.49
Bread=t 5 ==> Gender=Male 5 1 2.48
Time=15.01-19.00 Unif=t 5 ==> Gender=Female 5 1 1.68
ผลัการีจาก Association
Top Related