Professional Documents
Culture Documents
Task1:
1. Naïve-Bayes classifier
6 folds
9 folds
14 folds
Here we see that as the number of folds increases the correctly classified
instances increase. The Folds value determines the random subsamples
equal in size collected from dataset.
6 folds
14 folds
6 folds
Correctly Classified Instances 770 95.0617 %
9 folds
Correctly Classified Instances 770 95.0617 %
14 folds
Correctly Classified Instances 780 96.2963 %
The same number of folds when applied to different models has an effect on
the number of correctly classified instances except for the Random tree
forest which had the same results for
6 folds and 9 folds.
Confusion matrix
Naïve-Bayes:
a b c d e f g <-- classified as
124 0 0 1 0 0 0| a = brickface
0 109 0 1 0 0 0 | b = sky
2 0 82 2 36 0 0 | c = foliage
6 0 1 91 8 4 0 | d = cement
14 0 15 7 90 0 0 | e = window
0 0 0 5 0 89 0 | f = path
1 0 0 1 2 0 119 | g = grass
Random Tree:
a b c d e f g <-- classified as
119 0 1 1 4 0 0 | a = brickface
0 110 0 0 0 0 0 | b = sky
0 0 107 1 13 1 0 | c = foliage
1 0 0 102 5 0 2 | d = cement
6 0 11 8 101 0 0 | e = window
0 0 0 4 0 90 0 | f = path
0 0 1 1 0 0 121 | g = grass
Problem 2:
Naïve-Bayes
1st run: 42%-58%
a b c d e f g <-- classified as
59 0 0 0 1 0 0 | a = brickface
0 69 0 1 0 0 0 | b = sky
0 0 41 0 31 0 0 | c = foliage
2 0 0 55 11 2 0 | d = cement
6 0 6 2 62 0 0 | e = window
0 0 0 0 0 53 0 | f = path
0 0 0 1 2 0 66 | g = grass
a b c d e f g <-- classified as
44 0 0 1 1 0 0 | a = brickface
0 54 0 1 0 0 0 | b = sky
0 0 28 0 29 0 0 | c = foliage
3 0 0 48 3 2 0 | d = cement
12 0 4 7 37 0 0 | e = window
0 0 0 0 0 42 0 | f = path
0 0 0 0 2 0 55 | g = grass
a b c d e f g <-- classified as
33 0 0 1 0 0 0 | a = brickface
0 41 0 1 0 0 0 | b = sky
0 0 25 0 15 0 0 | c = foliage
2 0 0 41 2 0 0 | d = cement
10 0 3 2 33 0 0 | e = window
0 0 0 0 0 32 0 | f = path
1 0 0 0 1 0 40 | g = grass
59 0 0 0 1 0 0 | a = brickface
0 70 0 0 0 0 0 | b = sky
0 0 57 3 12 0 0 | c = foliage
2 0 3 56 1 3 5 | d = cement
3 0 18 2 51 0 2 | e = window
0 0 0 0 0 53 0 | f = path
0 0 0 0 1 0 68 | g = grass
a b c d e f g <-- classified as
44 0 1 0 1 0 0 | a = brickface
0 55 0 0 0 0 0 | b = sky
1 0 48 1 7 0 0 | c = foliage
1 0 3 48 2 2 0 | d = cement
0 0 10 4 46 0 0 | e = window
0 0 0 1 1 40 0 | f = path
1 0 0 0 1 0 55 | g = grass
a b c d e f g <-- classified as
34 0 0 0 0 0 0 | a = brickface
0 42 0 0 0 0 0 | b = sky
0 0 35 0 5 0 0 | c = foliage
0 0 0 39 5 0 1 | d = cement
0 0 5 0 43 0 0 | e = window
0 0 0 0 0 32 0 | f = path
0 0 0 0 0 1 41 | g = grass
Task 3:
Problem 5:
Using anneals.arff
Relation: anneal
Instances: 898
Attributes: 39
family
product-type
steel
carbon
hardness
temper_rolling
condition
formability
strength
non-ageing
surface-finish
surface-quality
enamelability
bc
bf
bt
bw/me
bl
chrom
phos
cbond
marvi
exptl
ferro
corr
blue/bright/varn/clean
lustre
jurofm
shape
thick
width
len
oil
bore
packing
class
------------------
hardness <= 70
| | family = ?
| | | surface-quality = ?
| | | | condition = ?: 3 (68.0/1.0)
| | | | condition = S
| | | | condition = A: 2 (0.0)
| | | | condition = X: 2 (0.0)
| | | surface-quality = D: 3 (55.0)
| | | surface-quality = E
| | | | condition = ?: U (2.0)
| | | | condition = S: 3 (256.0)
| | | | condition = A: 3 (0.0)
| | | | condition = X: 3 (0.0)
| | | surface-quality = F: 3 (60.0)
| | | surface-quality = G: 3 (180.0)
| | family = ZS
| | steel = ?: 2 (8.0)
| | steel = R: 3 (5.0)
| | steel = A: 3 (5.0)
| | steel = U: 2 (0.0)
| | steel = K: 2 (0.0)
| | steel = M: 2 (11.0)
| | steel = S: 1 (5.0)
| | steel = W: 2 (0.0)
| | steel = V: 2 (0.0)
hardness > 70
| hardness <= 80
| | cbond = ?: U (3.0)
| | cbond = Y: 3 (2.0)
Number of Leaves : 35
0 0 0 0 0 ? 4
1 0 1 1 1 1 5
a b c d e f <-- classified as
4 0 1 0 0 0| a=1
0 27 0 0 0 0 | b = 2
0 1 204 0 0 1 | c = 3
0 0 0 0 0 0| d=4
0 0 0 0 20 0 | e = 5
0 0 0 0 0 11 | f = U
Using audiology.arff
Relation: audiology
Instances: 226
Attributes: 70
age_gt_60
air
airBoneGap
ar_c
ar_u
bone
boneAbnormal
bser
history_buzzing
history_dizziness
history_fluctuating
history_fullness
history_heredity
history_nausea
history_noise
history_recruitment
history_ringing
history_roaring
history_vomiting
late_wave_poor
m_at_2k
m_cond_lt_1k
m_gt_1k
m_m_gt_2k
m_m_sn
m_m_sn_gt_1k
m_m_sn_gt_2k
m_m_sn_gt_500
m_p_sn_gt_2k
m_s_gt_500
m_s_sn
m_s_sn_gt_1k
m_s_sn_gt_2k
m_s_sn_gt_3k
m_s_sn_gt_4k
m_sn_2_3k
m_sn_gt_1k
m_sn_gt_2k
m_sn_gt_3k
m_sn_gt_4k
m_sn_gt_500
m_sn_gt_6k
m_sn_lt_1k
m_sn_lt_2k
m_sn_lt_3k
middle_wave_poor
mod_gt_4k
mod_mixed
mod_s_mixed
mod_s_sn_gt_500
mod_sn
mod_sn_gt_1k
mod_sn_gt_2k
mod_sn_gt_3k
mod_sn_gt_4k
mod_sn_gt_500
notch_4k
notch_at_4k
o_ar_c
o_ar_u
s_sn_gt_1k
s_sn_gt_2k
s_sn_gt_4k
speech
static_normal
tymp
viith_nerve_signs
wave_V_delayed
waveform_ItoV_prolonged
class
------------------
tymp = a
| age_gt_60 = f
| | history_fluctuating = f
| | | static_normal = t
| | | | history_noise = f
| | | | | wave_V_delayed = f
| | | | | | | notch_4k = f
| | | | | | | | boneAbnormal = f
| | | | history_noise = t
| | | | | history_heredity = f
| | | | | | history_dizziness = f
| age_gt_60 = t
| | history_noise = f
tymp = ad
| age_gt_60 = f
tymp = b
| age_gt_60 = f
tymp = c
| age_gt_60 = f
Number of Leaves : 32
0 0 0 0 0 ? acoustic_neuroma
0 0 0 0 0 ? bells_palsy
0 0 0 0 0 0.5
cochlear_age_plus_poss_menieres
0 0 0 0 0 0.94 cochlear_noise_and_heredity
0 0 0 0 0 0.5 conductive_discontinuity
1 0 1 1 1 1 conductive_fixation
0 0 0 0 0 ? mixed_cochlear_age_fixation
0 0.015 0 0 0 ?
mixed_cochlear_age_otitis_media
0 0 0 0 0 0.425 mixed_cochlear_age_s_om
1 0 1 1 1 1 mixed_cochlear_unk_fixation
1 0 1 1 1 1 mixed_cochlear_unk_ser_om
0 0 0 0 0 0.5 mixed_poss_central_om
0 0.015 0 0 0 ? mixed_poss_noise_om
0 0 0 0 0 ? otitis_media
0 0 0 0 0 ? poss_central
1 0 1 1 1 1 possible_brainstem_disorder
1 0 1 1 1 1 possible_menieres
0 0 0 0 0 ? retrocochlear_unknown
a b c d e f g h i j k l m n o p q r s t u v w x <-- classified as
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| a=
acoustic_neuroma
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | b = bells_palsy
0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 | c = cochlear_age
0 0 0 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| d=
cochlear_age_and_noise
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0| e=
cochlear_age_plus_poss_menieres
0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| f=
cochlear_noise_and_heredity
0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| g=
cochlear_poss_noise
0 0 0 0 0 0 1 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| h=
cochlear_unknown
0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0| i=
conductive_discontinuity
0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0| j=
conductive_fixation
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| k=
mixed_cochlear_age_fixation
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| l=
mixed_cochlear_age_otitis_media
0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0| m=
mixed_cochlear_age_s_om
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0| n=
mixed_cochlear_unk_discontinuity
0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0| o=
mixed_cochlear_unk_fixation
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0| p=
mixed_cochlear_unk_ser_om
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0| q=
mixed_poss_central_om
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| r=
mixed_poss_noise_om
0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 | s = normal_ear
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | t = otitis_media
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | u = poss_central
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0| v=
possible_brainstem_disorder
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0| w=
possible_menieres
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| x=
retrocochlear_unknown
Using autos.arff
Relation: autos
Instances: 205
Attributes: 26
normalized-losses
make
fuel-type
aspiration
num-of-doors
body-style
drive-wheels
engine-location
wheel-base
length
width
height
curb-weight
engine-type
num-of-cylinders
engine-size
fuel-system
bore
stroke
compression-ratio
horsepower
peak-rpm
city-mpg
highway-mpg
price
symboling
num-of-doors = four
| | make = volvo
num-of-doors = two
| city-mpg <= 22
| city-mpg > 22
Number of Leaves : 49
0 0 0 0 0 ? -3
0 0 0 0 0 ? -2
0 0 0 0 0 0 0 | a = -3
0 0 0 0 0 0 0 | b = -2
0 0 7 1 0 0 0 | c = -1
0 0 4 17 2 0 0 | d = 0
0 0 2 2 7 0 0| e=1
0 0 0 1 2 3 0| f=2
0 0 0 2 4 0 7| g=3