SlideShare a Scribd company logo
1 of 13
Waikato Environment for Knowledge
Analysis (WEKA)
CP463 B01 ARTIFICIAL INTELLIGENCE
โดย นายสุขพล นันทะชัยพร 54102010374
►Clustering
Preprocess
 Relation
Instances: 52
Attributes: 36
 Clustering Algorithm
SimpleKMeans
Determining the number of clusters
0
10
20
30
40
50
60
70
80
90
100
0 5 10 15 20 25
Squarederrors
Number of Cluster
Squared errors by Number of Clusters
 จำนวน Cluster ที่เหมำะสมในกำรแบ่งกลุ่ม คือ 16 เพรำะว่ำค่ำ
Squared errors ในช่วงของจำนวน Cluster ที่เท่ำกับ 16 นั้น
มีลักษณะลู่ลงมำกทำให้เกิด Knee Curve และสำมำรถแบ่งกลุ่มได้
เป็นจำนวนมำกที่สุด
(16,40
)
Model and Evaluation
Clusters Instances
0 17 (33%)
1 1 (2%)
2 4 (8%)
3 2 (4%)
4 2 (4%)
5 10 (19%)
6 3 (6%)
7 1 (2%)
8 1 (2%)
9 1 (2%)
10 4 (8%)
11 1 (2%)
12 1 (2%)
13 1 (2%)
14 1 (2%)
15 2 (4%)
►Classification
Preprocess
 Training set
Instances: 44
Attributes: 38
Class: Gender (Female, Male)
 Test set
Instances: 8
Attributes: 38
 Classification Algorithm
J48 with 10 Folds Cross-validation
ZeroR for Arff generation
Training Result
 Summary
Correctly Classified Instances 33 (75%)
Incorrectly Classified Instances 11 (25%)
 Detailed Accuracy by Class
TP Rate FP Rate Precision Recall F-Measure ROC Area Class
0.471 0.074 0.8 0.471 0.593 0.599 Male
0.926 0.529 0.735 0.926 0.82 0.599 Female
Weighted
Average
0.75 0.353 0.76 0.75 0.732 0.599
Testing Result
Gender PredictedGender
Male Male
Male Female
Female Female
Male Male
Female Female
Female Female
Male Female
Female Female
Accuracy 75%
►Association
Preprocess
 เมื่อได้ลองหำควำมสัมพันธ์ระหว่ำงสินค้ำที่ซื้อแล้ว พบว่ำไม่มีควำมสัมพันธ์ใดๆเกิดขึ้น
เลย จึงได้เปลี่ยนโจทย์ในกำรหำควำมสัมพันธ์เป็น เวลำ, สำขำ, เพศ
 Relation
Instances: 52
Attribute: 4
 Association Algorithm
Apriori
Apriori Result
 Best 10 rules:
Association Rules Confidence Lift
Branch=HappyLandSex=Female 1.00 1.68
Time=15.01-19.00
Branch=HappyLandSex=Female
1.00 1.68
Branch=HappyLandTime=15.01-19.00
Sex=Female
0.73 2.22
Time=11.01-15.00Branch=SWUPrasanmit 0.80 1.34
Branch=HappyLandTime=15.01-19.00 0.73 1.51
Branch=HappyLand Sex=FemaleTime=15.01-
19.00
0.73 1.51
Time=15.01-19.00
Sex=FemaleBranch=HappyLand
0.47 2.22
Sex=MaleBranch=SWUPrasanmit 0.71 1.20
Sex=FemaleBranch=HappyLand 0.35 1.68
Time=15.01-19.00Sex=Female 0.68 1.14
►จบการนาเสนอ

More Related Content

Viewers also liked

Orientação sexual x identidade de gênero.
Orientação sexual x identidade de gênero.Orientação sexual x identidade de gênero.
Orientação sexual x identidade de gênero.Jhuli Grégori
 
Pgt parent presentation
Pgt parent presentationPgt parent presentation
Pgt parent presentationlpitchesGATE
 
Social Media Marketing for Sustainable Destinations
Social Media Marketing for Sustainable DestinationsSocial Media Marketing for Sustainable Destinations
Social Media Marketing for Sustainable DestinationsJulia Guerra
 
Cloak Mod in American Rifleman
Cloak Mod in American RiflemanCloak Mod in American Rifleman
Cloak Mod in American RiflemanBeth Baumann
 
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்newecntdas
 
Transformada de laplace
Transformada de laplaceTransformada de laplace
Transformada de laplaceelye32
 

Viewers also liked (13)

The Fourth Tie Doc
The Fourth Tie DocThe Fourth Tie Doc
The Fourth Tie Doc
 
Orientação sexual x identidade de gênero.
Orientação sexual x identidade de gênero.Orientação sexual x identidade de gênero.
Orientação sexual x identidade de gênero.
 
Pgt parent presentation
Pgt parent presentationPgt parent presentation
Pgt parent presentation
 
Shukla Chambers (1)
Shukla Chambers (1)Shukla Chambers (1)
Shukla Chambers (1)
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
Social Media Marketing for Sustainable Destinations
Social Media Marketing for Sustainable DestinationsSocial Media Marketing for Sustainable Destinations
Social Media Marketing for Sustainable Destinations
 
Metabolismo
MetabolismoMetabolismo
Metabolismo
 
Reviews English and Danish
Reviews English and DanishReviews English and Danish
Reviews English and Danish
 
My vacations
My vacationsMy vacations
My vacations
 
Cloak Mod in American Rifleman
Cloak Mod in American RiflemanCloak Mod in American Rifleman
Cloak Mod in American Rifleman
 
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்
குழந்தைகள் பாராளுமன்றத்தின் சமூக பொறுப்புகள் மற்றும்
 
Sistemas Eccos y polÍticos
Sistemas Eccos y polÍticosSistemas Eccos y polÍticos
Sistemas Eccos y polÍticos
 
Transformada de laplace
Transformada de laplaceTransformada de laplace
Transformada de laplace
 

Waikato environment for knowledge analysis (weka)