Professional Documents
Culture Documents
Experiment 2: AIM: Implementation of Classification Technique On ARFF Files Using WEKA Data Set
Experiment 2: AIM: Implementation of Classification Technique On ARFF Files Using WEKA Data Set
Experiment 2: AIM: Implementation of Classification Technique On ARFF Files Using WEKA Data Set
Data Set
@relation diabetes1
@attribute 'glucose_cocentration' real
@attribute 'blood_pressure' real
@attribute 'skin_thickness' real
@attribute 'age' real
@attribute class {tested_negative,tested_positive}
@data
7,140,50,60,tested_positive
8,120,43,75,tested_positive
6,110,37,60,tested_positive
9,125,28,46,tested_positive
9,160,53,72,tested_positive
7,105,48,65,tested_positive
8,100,32,78,tested_positive
9,110,25,43,tested_positive
3,145,49,54,tested_positive
4,156,60,40,tested_positive
2,170,28,37,tested_positive
1,20,43,60,tested_positive
4,108,46,45,tested_positive
3,90,27,70,tested_positive
2,100,36,30,tested_negative
4,125,35,45,tested_negative
3,120,26,48,tested_negative
1,100,30,30,tested_negative
4,108,23,43,tested_negative
3,140,39,58,tested_positive
1,120,55,40,tested_positive
2,87,29,34,tested_negative
3,96,32,71,tested_positive
1,104,54,27,tested_negative
4,120,31,31,tested_negative
1,105,30,40,tested_negative
3,110,21,46,tested_negative
2,102,36,33,tested_negative
3,118,27,40,tested_negative
Result
a b <-- classified as
10 2 | a = tested_negative
5 12 | b = tested_positive
Analysis:
At root node dataset is split into age attribute ,if age is >48 person is tested as positive
else next split is on basis of glucose_concentration .If glucose_concentration is >6
person is tested as positive else next split is blood_pressure. If blood_pressure >140
person is tested as positive else next split is skin_thickness. If skin_thickness >39 person
is tested as positive else person is tested as negative.