0% found this document useful (0 votes)
4 views

Cluster Result

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Cluster Result

Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

=== Run information ===

Scheme: weka.clusterers.SimpleKMeans -init 0 -max-candidates 100 -periodic-


pruning 10000 -min-density 2.0 -t1 -1.25 -t2 -1.0 -V -N 3 -A
"weka.core.EuclideanDistance -R first-last" -I 500 -num-slots 1 -S 10
Relation: cardiology-weka.filters.unsupervised.attribute.RenameAttribute-
find([\s\S]+)-replacegender-R2-
weka.filters.unsupervised.attribute.ReplaceMissingValues-
weka.filters.unsupervised.attribute.ReplaceMissingValues-
weka.filters.unsupervised.attribute.RenameAttribute-find([\s\S]+)-replace$0-Rfirst-
last-weka.filters.unsupervised.attribute.RenameAttribute-find([\s\S]+)-replace$0-
Rfirst-last-weka.filters.unsupervised.attribute.RenameAttribute-find([\s\S]+)-
replace$0-Rfirst-last
Instances: 303
Attributes: 14
age
gender
chest-pain-type
blood-pressure
cholesterol
Fasting-blood-sugar<120
resting-ecg
maximum-heart-rate
angina
peak
slope
#colored-vessels
thal
Ignored:
heart condition
Test mode: Classes to clusters evaluation on training data

=== Clustering model (full training set) ===

kMeans
======

Number of iterations: 8
Within cluster sum of squared errors: 582.3002863027555

Initial starting points (random):

Cluster 0: 63,Male,Asymptomatic,130,330,TRUE,Hyp,132,TRUE,1.8,Up,3,Rev
Cluster 1: 57,Female,Asymptomatic,128,303,FALSE,Hyp,159,FALSE,0,Up,1,Normal
Cluster 2: 58,Male,Asymptomatic,100,234,FALSE,Normal,156,FALSE,0.1,Up,1,Rev

Missing values globally replaced with mean/mode

Final cluster centroids:


Cluster#
Attribute Full Data 0 1
2
(303.0) (111.0) (79.0)
(113.0)
===================================================================================
======
age 54.3233 57.0689 55.6329
50.7108
+/-9.0418 +/-7.8386 +/-9.1261
+/-8.958

gender Male Male Female


Male
Male 207.0 ( 68%) 94.0 ( 84%) 20.0 ( 25%) 93.0
( 82%)
Female 96.0 ( 31%) 17.0 ( 15%) 59.0 ( 74%) 20.0
( 17%)

chest-pain-type Asymptomatic Asymptomatic NoTang


Asymptomatic
Asymptomatic 143.0 ( 47%) 87.0 ( 78%) 9.0 ( 11%) 47.0
( 41%)
AbnormalAngina 50.0 ( 16%) 2.0 ( 1%) 16.0 ( 20%) 32.0
( 28%)
Angina 23.0 ( 7%) 9.0 ( 8%) 7.0 ( 8%) 7.0
( 6%)
NoTang 87.0 ( 28%) 13.0 ( 11%) 47.0 ( 59%) 27.0
( 23%)

blood-pressure 131.6238 135.2613 132.5063


127.4336
+/-17.5381 +/-19.1775 +/-16.4238 +/-
15.778

cholesterol 246.264 250.6126 258.519


233.4248
+/-51.8308 +/-49.4907 +/-61.5261 +/-
43.7135

Fasting-blood-sugar<120 FALSE FALSE FALSE


FALSE
FALSE 258.0 ( 85%) 92.0 ( 82%) 65.0 ( 82%) 101.0
( 89%)
TRUE 45.0 ( 14%) 19.0 ( 17%) 14.0 ( 17%) 12.0
( 10%)

resting-ecg Normal Hyp Hyp


Normal
Hyp 147.0 ( 48%) 76.0 ( 68%) 53.0 ( 67%) 18.0
( 15%)
Normal 152.0 ( 50%) 33.0 ( 29%) 25.0 ( 31%) 94.0
( 83%)
Abnormal 4.0 ( 1%) 2.0 ( 1%) 1.0 ( 1%) 1.0
( 0%)

maximum-heart-rate 149.6469 135.045 154.7722


160.4071
+/-22.9052 +/-20.723 +/-19.863 +/-
19.2737

angina FALSE TRUE FALSE


FALSE
TRUE 99.0 ( 32%) 78.0 ( 70%) 4.0 ( 5%) 17.0
( 15%)
FALSE 204.0 ( 67%) 33.0 ( 29%) 75.0 ( 94%) 96.0
( 84%)
peak 1.0396 1.7622 0.6734
0.5858
+/-1.1611 +/-1.2745 +/-0.8286 +/-
0.8613

slope Flat Flat Up


Up
Flat 145.0 ( 47%) 89.0 ( 80%) 28.0 ( 35%) 28.0
( 24%)
Up 137.0 ( 45%) 13.0 ( 11%) 45.0 ( 56%) 79.0
( 69%)
Down 21.0 ( 6%) 9.0 ( 8%) 6.0 ( 7%) 6.0
( 5%)

#colored-vessels 0.6667 1.1622 0.4177


0.354
+/-0.9338 +/-1.0405 +/-0.7269
+/-0.731

thal Normal Rev Normal


Normal
Rev 118.0 ( 38%) 82.0 ( 73%) 5.0 ( 6%) 31.0
( 27%)
Normal 167.0 ( 55%) 19.0 ( 17%) 73.0 ( 92%) 75.0
( 66%)
Fix 18.0 ( 5%) 10.0 ( 9%) 1.0 ( 1%) 7.0
( 6%)

Time taken to build model (full training data) : 0.01 seconds

=== Model and evaluation on training set ===

Clustered Instances

0 111 ( 37%)
1 79 ( 26%)
2 113 ( 37%)

Class attribute: heart condition


Classes to Clusters:

0 1 2 <-- assigned to cluster


95 12 31 | Sick
16 67 82 | Healthy

Cluster 0 <-- Sick


Cluster 1 <-- No class
Cluster 2 <-- Healthy

Incorrectly clustered instances : 126.0 41.5842 %

You might also like