Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NAIVE BAYES
- === Run information ===
- Scheme: weka.classifiers.bayes.NaiveBayes
- Relation: cleveland-14-heart-disease
- Instances: 303
- Attributes: 14
- age
- sex
- cp
- trestbps
- chol
- fbs
- restecg
- thalach
- exang
- oldpeak
- slope
- ca
- thal
- num
- Test mode: 10-fold cross-validation
- === Classifier model (full training set) ===
- Naive Bayes Classifier
- Class
- Attribute <50 >50_1
- (0.54) (0.46)
- ============================================
- age
- mean 52.4655 56.6
- std. dev. 9.5284 7.9344
- weight sum 165 138
- precision 1.2 1.2
- sex
- female 73.0 25.0
- male 94.0 115.0
- [total] 167.0 140.0
- cp
- typ_angina 17.0 8.0
- asympt 40.0 105.0
- non_anginal 70.0 19.0
- atyp_angina 42.0 10.0
- [total] 169.0 142.0
- trestbps
- mean 129.1273 134.3723
- std. dev. 16.0421 18.6815
- weight sum 165 138
- precision 2.2083 2.2083
- chol
- mean 242.1789 251.1385
- std. dev. 53.384 49.3271
- weight sum 165 138
- precision 2.9007 2.9007
- fbs
- t 24.0 23.0
- f 143.0 117.0
- [total] 167.0 140.0
- restecg
- left_vent_hyper 69.0 80.0
- normal 97.0 57.0
- st_t_wave_abnormality 2.0 4.0
- [total] 168.0 141.0
- thalach
- mean 158.4174 139.1005
- std. dev. 19.0916 22.5146
- weight sum 165 138
- precision 1.4556 1.4556
- exang
- no 143.0 63.0
- yes 24.0 77.0
- [total] 167.0 140.0
- oldpeak
- mean 0.5868 1.5932
- std. dev. 0.7744 1.2957
- weight sum 165 138
- precision 0.159 0.159
- slope
- up 108.0 36.0
- flat 50.0 92.0
- down 10.0 13.0
- [total] 168.0 141.0
- ca
- mean 0.2733 1.146
- std. dev. 0.6304 1.0148
- weight sum 161 137
- precision 1 1
- thal
- fixed_defect 7.0 13.0
- normal 131.0 37.0
- reversable_defect 29.0 90.0
- [total] 167.0 140.0
- Time taken to build model: 0 seconds
- === Stratified cross-validation ===
- === Summary ===
- Correctly Classified Instances 253 83.4983 %
- Incorrectly Classified Instances 50 16.5017 %
- Kappa statistic 0.6661
- Mean absolute error 0.1846
- Root mean squared error 0.3634
- Relative absolute error 37.2065 %
- Root relative squared error 72.9737 %
- Total Number of Instances 303
- === Detailed Accuracy By Class ===
- TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class
- 0,867 0,203 0,836 0,867 0,851 0,667 0,904 0,918 <50
- 0,797 0,133 0,833 0,797 0,815 0,667 0,904 0,883 >50_1
- Weighted Avg. 0,835 0,171 0,835 0,835 0,835 0,667 0,904 0,902
- === Confusion Matrix ===
- a b <-- classified as
- 143 22 | a = <50
- 28 110 | b = >50_1
- K-MEANS
- === Run information ===
- Scheme: weka.clusterers.SimpleKMeans -init 0 -max-candidates 100 -periodic-pruning 10000 -min-density 2.0 -t1 -1.25 -t2 -1.0 -N 2 -A "weka.core.EuclideanDistance -R first-last" -I 500 -num-slots 1 -S 10
- Relation: cleveland-14-heart-disease
- Instances: 303
- Attributes: 14
- age
- sex
- cp
- trestbps
- chol
- fbs
- restecg
- thalach
- exang
- oldpeak
- slope
- ca
- thal
- Ignored:
- num
- Test mode: Classes to clusters evaluation on training data
- === Clustering model (full training set) ===
- kMeans
- ======
- Number of iterations: 5
- Within cluster sum of squared errors: 648.4924706321818
- Initial starting points (random):
- Cluster 0: 65,female,non_anginal,140,417,t,left_vent_hyper,157,no,0.8,up,1,normal
- Cluster 1: 58,male,asympt,114,318,f,st_t_wave_abnormality,140,no,4.4,down,3,fixed_defect
- Missing values globally replaced with mean/mode
- Final cluster centroids:
- Cluster#
- Attribute Full Data 0 1
- (303.0) (169.0) (134.0)
- ==============================================================================
- age 54.3663 52.1006 57.2239
- sex male male male
- cp asympt non_anginal asympt
- trestbps 131.6238 129.497 134.306
- chol 246.264 240.4024 253.6567
- fbs f f f
- restecg normal normal left_vent_hyper
- thalach 149.6469 159.0828 137.7463
- exang no no yes
- oldpeak 1.0396 0.5805 1.6187
- slope up up flat
- ca 0.6745 0.4302 0.9826
- thal normal normal reversable_defect
- Time taken to build model (full training data) : 0.01 seconds
- === Model and evaluation on training set ===
- Clustered Instances
- 0 169 ( 56%)
- 1 134 ( 44%)
- Class attribute: num
- Classes to Clusters:
- 0 1 <-- assigned to cluster
- 138 27 | <50
- 31 107 | >50_1
- Cluster 0 <-- <50
- Cluster 1 <-- >50_1
- Incorrectly clustered instances : 58.0 19.1419 %
Add Comment
Please, Sign In to add comment