Mod3 DecisionTrees Problems
Mod3 DecisionTrees Problems
* Visit https://vtuconnect.in for more info. For any queries or questions wrt our
platform contact us at: support@vtuconnect.in
Machine Learning 1 5CS73 VTU B.E CSE 7'hSemester
Download & Share VTU Connect App Now From Google Play Store
MODULE 2
!r. Give Decision trees for the following set of training examples
fi"twn
-----
!* :,
ie Ent:opV(s) =
;,,t,,:p6,bj, t, ""'-, ?.b\r?,
lcl Entanp,trCsu)
Cfurr" [S,R)"* 6nt-f; Cs) . . -lf,i
lifl 'u
'-
ve l/alu,rCo)
,,,ft{'&,,,,,
Download & Share VTU Connect App Now From Google Play Store
Engg. College, Mangaluru q
Machine Learning I 5CS73 VTU B.E CSE 7'hSemester
Download & Share VTU Connect App Now From Google Play Store
{F {t,
t" )q 'a Jb
N -1f., &prnolt nodr t 4?*
dJil$frn flr. ID3 d.fi:nilnu +h.
'ff[ornMlfrn
N
F u1th AnNDv-fL , +hen $iltrk +hc ww, wth Wfl*
r'nfrrnnrion N , ;.;;:,.1;;,,
+ €nfrop,g o5 S ,
-. porirux >r.^*y\tl e
?L
*?rr*
,:.:.:::
Download & Share VTU Connect App Now From Google Play Store
Deepak D, Asst.P.o$lor, D.pl. gf CS&E, CanaruEngg.College, Mansaluru ' | 0
Machinc l-carnitrg | 5('S7.i VTU B.E CSE 7'h Semester
Download & Share VTU Connect App Now From Google Play Store
n\^^.
Ai -
gX1 Ywxrvb
|
tll'
o-^ f 0n oI It
h,hnfi F, rrv^tv-
/Wtvr- twrs ;:,
€ritrorytspr^)" bl,t+)
C) Hbl,k)
-- - (0,e r
f o. ?360 - @"+ * [- t'a zrr)
= 0. 4+zt4 t 0.YIS}S a
: 0, Qto
t- 0 f
Fr- r,
.::::::
$; $:r$P1,;:
.::::
r dj"t#6it 0,3+6?]
\
J
- 0,2+6
[s , T*p,mlrr$ - 0.02q
lia,1,;,,ii
Qon
q,li,'n (t, +t"*ri&) " 0" [S I
qtrin
[S, wirvl) = 9' 02Q
So W vwde- v,JA b. 0@
Decpak D, Download & Share VTU Connect
Asst. ProfegsolQgg! App Now
o].CS&F., FromEngg.
Canara GoogleCollege,
Play StoreMan w
Machine LearningDownload
I SCS 73& Share VTU Connect App Now From Google PlayVTU
Store B.E CSE 7'hSemester
ilny OVdlUrt' W
\
Ip,, Dz, D8, lku'\ t*l ,, 5 P+ ,Ds ,DG ,Dto,D t4J
t4t' oJ
,/ j
ur-ti/l A-fu*ufit %o*M be, IqI^P) tux"
rl
qF,
Srny ' f D', Dr, Dt ,D1, DrlJ
tt:
t ej-j
z g-glJ!
ej-'*[''),,{
,,,,,-- gY-"t"'"'
W, t^li^oj
DeepakD,Asst.Pro@Engg.College,Mangaluru
Download & Share VTU Connect App Now From Google Play Store | 1
Machine Learning I 5CS73 VTU B.E CSE 7'hSemester
Download & Share VTU Connect App Now From Google Play Store
OVut"o.r
zry I
Y$
I
Al0 Ja
\ )'n
FU..........l'.l \.
Download & Share VTU Connect App Now From Google Play Store
D, Asst. Professor. . of CS&E, CanaraEngg.College, Mangaluru W
Machine Learning 1 5CS73 VTU B.E. 7rh Semester
Download & Share VTU Connect App Now From Google Play Store
s9-, Consider the following set of training examples.
a) What is the entropy of this collection of training example with respect to the target
function classifi cation?
b) What is the information gain of urcIative to these training examples?
Instance Classification a1 u
I + T T
2 + T T
a
J T F
4 -r F F
5 F T
6 F T
*) pOSiltut
AI,{ i".
€nfroryG)=.etr Mtrtt P
tz;bu,G)
Fnl'ro A{9=
Download
Deepak D, Asst. & Share VTU Connect App Now From Google Play Store
Professor, l, f:
Dept. of CS&E, Canara . College, Iuru
' r'd.h,n. l s('s7.t
Download & Share VTU Connect App Now From Google Play Store
-l..r*i,lg
,nl F f.., \ f- '
b) Qa^(O,ar)' €nty,tJcs)- E^frotqtst) +
L+
LnwryG'[
?
ii:,::
i::i
i rt'l
"u
,,, ,,:t t
;t'
t
I-,\
tt5 l-
('
+
^
f0 + +('x
,.;' b
;t:::
Download
Deeirak D, Asst. & Share VTU
Professor, Connect App Now From Google Play Store
Dept. ol.CS&E, Canara Enge. Col Mangaluru tb
Machine Learning 1 5CS73 VTU B.E CSE 7'hSemester
Download & Share VTU Connect App Now From Google Play Store
i') F v [r q& cJ
'.\ s.
ii,) .XoR -B
irl) ts qq Bl v [c q+ DJ
l**"
-:::-
F ,,,,,,,..[ p
|*,
r (-)
T FL-)
Download & Share VTU Connect App Now From Google Play Store
Deepak D, Asst. Professor, . of CS&E, CanaraEngg.College, Mangaluru l'1
Machine Learning I 5 CS 73 VTU
Download & Share VTU Connect App Now From Google Play Store B.E CSE 7'hSemester
fi vfs \ac
F v [s 41c]
T T T T T
T T F F T
T F T
T F
F T
F F
T T
F T T T
F T F r F
F F T F
r
F F F F F
0?.
F B A rlt- B
T T r
T F T
F T T
? ? F
Download & Share VTU Connect App Now From Google Play Store
Deepak D, Asst. P.o@a lLl
Engg. College, Mangaluru