Nursery Data Set
Number of features = 8
Total number of instances = 12960
Number of classes: 5
probability of class 0 in the whole set: 0.000154321
probability of class 1 in the whole set: 0.329167
probability of class 2 in the whole set: 0.333333
probability of class 3 in the whole set: 0.0253086
probability of class 4 in the whole set: 0.312037
feature 0, with number of values = 3
feature 1, with number of values = 5
feature 2, with number of values = 4
feature 3, with number of values = 4
feature 4, with number of values = 3
feature 5, with number of values = 2
feature 6, with number of values = 3
feature 7, with number of values = 3
Naive Bayes trained on the whole data set:
0/1 loss if no feature was used (error of random):0.666667
feature: 0, with gini loss: 0.657509, with 0/1 loss: 0.581088 (when used alone for prediction)
class: 0
value: 0, prob: 0.6
value: 1, prob: 0.2
value: 2, prob: 0.2
class: 1
value: 0, prob: 0.450925
value: 1, prob: 0.347857
value: 2, prob: 0.201218
class: 2
value: 0, prob: 0.333333
value: 1, prob: 0.333333
value: 2, prob: 0.333333
class: 3
value: 0, prob: 0.595166
value: 1, prob: 0.401813
value: 2, prob: 0.00302115
class: 4
value: 0, prob: 0.187546
value: 1, prob: 0.312577
value: 2, prob: 0.499876
feature: 1, with gini loss: 0.61129, with 0/1 loss: 0.508383 (when used alone for prediction)
class: 0
value: 0, prob: 0.428571
value: 1, prob: 0.142857
value: 2, prob: 0.142857
value: 3, prob: 0.142857
value: 4, prob: 0.142857
class: 1
value: 0, prob: 0.314915
value: 1, prob: 0.314915
value: 2, prob: 0.211894
value: 3, prob: 0.108874
value: 4, prob: 0.049403
class: 2
value: 0, prob: 0.2
value: 1, prob: 0.2
value: 2, prob: 0.2
value: 3, prob: 0.2
value: 4, prob: 0.2
class: 3
value: 0, prob: 0.393393
value: 1, prob: 0.399399
value: 2, prob: 0.201201
value: 3, prob: 0.003003
value: 4, prob: 0.003003
class: 4
value: 0, prob: 0.0624846
value: 1, prob: 0.0624846
value: 2, prob: 0.187454
value: 3, prob: 0.312423
value: 4, prob: 0.375154
feature: 2, with gini loss: 0.681264, with 0/1 loss: 0.655882 (when used alone for prediction)
class: 0
value: 0, prob: 0.5
value: 1, prob: 0.166667
value: 2, prob: 0.166667
value: 3, prob: 0.166667
class: 1
value: 0, prob: 0.270023
value: 1, prob: 0.255972
value: 2, prob: 0.243326
value: 3, prob: 0.230679
class: 2
value: 0, prob: 0.25
value: 1, prob: 0.25
value: 2, prob: 0.25
value: 3, prob: 0.25
class: 3
value: 0, prob: 0.358434
value: 1, prob: 0.304217
value: 2, prob: 0.213855
value: 3, prob: 0.123494
class: 4
value: 0, prob: 0.219615
value: 1, prob: 0.239377
value: 2, prob: 0.260128
value: 3, prob: 0.280879
feature: 3, with gini loss: 0.679735, with 0/1 loss: 0.647408 (when used alone for prediction)
class: 0
value: 0, prob: 0.5
value: 1, prob: 0.166667
value: 2, prob: 0.166667
value: 3, prob: 0.166667
class: 1
value: 0, prob: 0.28267
value: 1, prob: 0.255972
value: 2, prob: 0.230679
value: 3, prob: 0.230679
class: 2
value: 0, prob: 0.25
value: 1, prob: 0.25
value: 2, prob: 0.25
value: 3, prob: 0.25
class: 3
value: 0, prob: 0.448795
value: 1, prob: 0.304217
value: 2, prob: 0.123494
value: 3, prob: 0.123494
class: 4
value: 0, prob: 0.198864
value: 1, prob: 0.239377
value: 2, prob: 0.280879
value: 3, prob: 0.280879
feature: 4, with gini loss: 0.678216, with 0/1 loss: 0.639995 (when used alone for prediction)
class: 0
value: 0, prob: 0.6
value: 1, prob: 0.2
value: 2, prob: 0.2
class: 1
value: 0, prob: 0.379246
value: 1, prob: 0.327243
value: 2, prob: 0.293511
class: 2
value: 0, prob: 0.333333
value: 1, prob: 0.333333
value: 2, prob: 0.333333
class: 3
value: 0, prob: 0.63142
value: 1, prob: 0.305136
value: 2, prob: 0.0634441
class: 4
value: 0, prob: 0.260193
value: 1, prob: 0.342229
value: 2, prob: 0.397578
feature: 5, with gini loss: 0.681514, with 0/1 loss: 0.658035 (when used alone for prediction)
class: 0
value: 0, prob: 0.75
value: 1, prob: 0.25
class: 1
value: 0, prob: 0.526007
value: 1, prob: 0.473993
class: 2
value: 0, prob: 0.5
value: 1, prob: 0.5
class: 3
value: 0, prob: 0.663636
value: 1, prob: 0.336364
class: 4
value: 0, prob: 0.458972
value: 1, prob: 0.541028
feature: 6, with gini loss: 0.678949, with 0/1 loss: 0.639379 (when used alone for prediction)
class: 0
value: 0, prob: 0.4
value: 1, prob: 0.4
value: 2, prob: 0.2
class: 1
value: 0, prob: 0.355118
value: 1, prob: 0.355118
value: 2, prob: 0.289763
class: 2
value: 0, prob: 0.333333
value: 1, prob: 0.333333
value: 2, prob: 0.333333
class: 3
value: 0, prob: 0.498489
value: 1, prob: 0.498489
value: 2, prob: 0.00302115
class: 4
value: 0, prob: 0.296763
value: 1, prob: 0.296763
value: 2, prob: 0.406474
feature: 7, with gini loss: 0.346904, with 0/1 loss: 0.29055 (when used alone for prediction)
class: 0
value: 0, prob: 0.6
value: 1, prob: 0.2
value: 2, prob: 0.2
class: 1
value: 0, prob: 0.565238
value: 1, prob: 0.434528
value: 2, prob: 0.000234247
class: 2
value: 0, prob: 0.000231321
value: 1, prob: 0.000231321
value: 2, prob: 0.999537
class: 3
value: 0, prob: 0.993958
value: 1, prob: 0.00302115
value: 2, prob: 0.00302115
class: 4
value: 0, prob: 0.390166
value: 1, prob: 0.609587
value: 2, prob: 0.000247097
Number of features = 16
Total number of instances = 435
number of classes: 2
probability of class 0 in the whole set: 0.386207
probability of class 1 in the whole set: 0.613793
feature 0, with number of values = 2
feature 1, with number of values = 2
feature 2, with number of values = 2
feature 3, with number of values = 2
feature 4, with number of values = 2
feature 5, with number of values = 2
feature 6, with number of values = 2
feature 7, with number of values = 2
feature 8, with number of values = 2
feature 9, with number of values = 2
feature 10, with number of values = 2
feature 11, with number of values = 2
feature 12, with number of values = 2
feature 13, with number of values = 2
feature 14, with number of values = 2
feature 15, with number of values = 2
Naive Bayes trained on the whole data set:
0/1 loss if no feature was used (error of random):0.386207
feature: 0, with gini loss: 0.396761, with 0/1 loss: 0.31716 (when used alone for prediction)
class: 0
value: 0, prob: 0.808383
value: 1, prob: 0.191617
class: 1
value: 0, prob: 0.396154
value: 1, prob: 0.603846
feature: 1, with gini loss: 0.474093, with 0/1 loss: 0.386207 (when used alone for prediction)
class: 0
value: 0, prob: 0.506667
value: 1, prob: 0.493333
class: 1
value: 0, prob: 0.502075
value: 1, prob: 0.497925
feature: 2, with gini loss: 0.213477, with 0/1 loss: 0.123792 (when used alone for prediction)
class: 0
value: 0, prob: 0.861446
value: 1, prob: 0.138554
class: 1
value: 0, prob: 0.114504
value: 1, prob: 0.885496
feature: 3, with gini loss: 0.0782587, with 0/1 loss: 0.0422133 (when used alone for prediction)
class: 0
value: 0, prob: 0.982036
value: 1, prob: 0.0179641
class: 1
value: 0, prob: 0.0574713
value: 1, prob: 0.942529
feature: 4, with gini loss: 0.235713, with 0/1 loss: 0.154558 (when used alone for prediction)
class: 0
value: 0, prob: 0.946108
value: 1, prob: 0.0538922
class: 1
value: 0, prob: 0.217899
value: 1, prob: 0.782101
feature: 5, with gini loss: 0.389962, with 0/1 loss: 0.334111 (when used alone for prediction)
class: 0
value: 0, prob: 0.892857
value: 1, prob: 0.107143
class: 1
value: 0, prob: 0.476923
value: 1, prob: 0.523077
feature: 6, with gini loss: 0.347355, with 0/1 loss: 0.235299 (when used alone for prediction)
class: 0
value: 0, prob: 0.756098
value: 1, prob: 0.243902
class: 1
value: 0, prob: 0.229885
value: 1, prob: 0.770115
feature: 7, with gini loss: 0.269003, with 0/1 loss: 0.16727 (when used alone for prediction)
class: 0
value: 0, prob: 0.842767
value: 1, prob: 0.157233
class: 1
value: 0, prob: 0.173585
value: 1, prob: 0.826415
feature: 8, with gini loss: 0.292049, with 0/1 loss: 0.196018 (when used alone for prediction)
class: 0
value: 0, prob: 0.88024
value: 1, prob: 0.11976
class: 1
value: 0, prob: 0.244
value: 1, prob: 0.756
feature: 9, with gini loss: 0.47084, with 0/1 loss: 0.386207 (when used alone for prediction)
class: 0
value: 0, prob: 0.556886
value: 1, prob: 0.443114
class: 1
value: 0, prob: 0.471698
value: 1, prob: 0.528302
feature: 10, with gini loss: 0.407875, with 0/1 loss: 0.356088 (when used alone for prediction)
class: 0
value: 0, prob: 0.863354
value: 1, prob: 0.136646
class: 1
value: 0, prob: 0.494163
value: 1, prob: 0.505837
feature: 11, with gini loss: 0.236471, with 0/1 loss: 0.142138 (when used alone for prediction)
class: 0
value: 0, prob: 0.866242
value: 1, prob: 0.133758
class: 1
value: 0, prob: 0.14741
value: 1, prob: 0.85259
feature: 12, with gini loss: 0.330589, with 0/1 loss: 0.234339 (when used alone for prediction)
class: 0
value: 0, prob: 0.85625
value: 1, prob: 0.14375
class: 1
value: 0, prob: 0.291339
value: 1, prob: 0.708661
feature: 13, with gini loss: 0.292809, with 0/1 loss: 0.225135 (when used alone for prediction)
class: 0
value: 0, prob: 0.97546
value: 1, prob: 0.0245399
class: 1
value: 0, prob: 0.351351
value: 1, prob: 0.648649
feature: 14, with gini loss: 0.339472, with 0/1 loss: 0.259863 (when used alone for prediction)
class: 0
value: 0, prob: 0.905063
value: 1, prob: 0.0949367
class: 1
value: 0, prob: 0.363636
value: 1, prob: 0.636364
feature: 15, with gini loss: 0.4154, with 0/1 loss: 0.295792 (when used alone for prediction)
class: 0
value: 0, prob: 0.655405
value: 1, prob: 0.344595
class: 1
value: 0, prob: 0.930481
value: 1, prob: 0.0695187