ML Assign 2
ML Assign 2
BE.B
265
LTCE
Machine Leannung
ASSIGNMENT-2
Althoug the SVM baaed claaaiication (ie: traunng time) iaextemaly skew
tho Adaut, howeMex higal ccunak FatheM, teat n unknown data
ve Hpmplone
HYPERPLANE > Supeoa we havea a_dadtaaet _havinq two ckasaza ond we wot t
cdaaai dthat the new data paint ao eithu 1r 0To daaes
mae baunta, we Com hawmany deciai on boundaniea
In mudipl dimunaisnaie Mare than 20) t a called a
hyplane Th boat hupexplone
th
ia tat_plane that
Give the foll. datui 234, 123,456, 23,34, 56,H8, 96,150, l6, 11,118, 199
or k=2, uoe C180) and C2(250) aa thu inutiak cluotan centrea uoing
the k-meana alaorithm tr ind tho inal cduotana
A
R=2qiven
Iniially,C1-80,C2 250
C =80 C2 2500
K 123,23,34,56,H,96,150, K=234, 456, 199
116,17, 1188J
dince, K= K K2 K2 we stop
Theneore nal cuta ane > Ka= 123,23,34,56, 8,96,150,116,H,
k 234, 456, 139
2
36
G 5
4
2
inumum
2 Weight=11
2
3 Custers
A)
STEPS FOR PCA ALGD
O 6etiug tho dataacti taka the inputrdatnoeth diida itz ite twosubp.avta
Xand. y whexa X=tning set, - tootintSet_
Rebabating data aaStruectutnpnt 20 matrix s Indupendart va X
tandandigzing tu data,
PROBLEMaivon, X=| - Y =
2 y2
LTCE
Mean vectr4)
n,Ma)ly-Aj[u-|11
L-1 1J
m2 =)(%A-[o1Eo1
m(X):(%4 [|10)11-
oo
CovnLaMce matix= MtMtMg/3 ie,1+011 -1+D+0 1 + 3
1+0+0 1+1t0
2/3 -31
L- 2/3
>2-1XE
3
X 0
X2
X+ 2X2 =
r
LTCE
ATA = M
Atep-1
5- 3 6
3 5-A
(5-2-8)-o
25+*-10-9-0
-10+ 16=o -2-8+16 2a(-2)-«(2-12)
-2 r D-8
dtz3Ei on VectDrs,-
-2, A-8,
5-8 3
3.5-8
3V + 3V2=0 3V +3V =O
,V+V2=0 Vi =V2
= -V22
ie-1
LTCE
1JE
V 12
4/J2 1/J2
1/2-1//2 2.8 28 0
1414 JJ
Suthaot Vectava SE
(2 Bina Qgment S=
Fan
Ean Ds) Is) + «2 dsa).o[G) +da ¢lss). bs) -
+1
daoeA blone
){})+*|EN)**}X9- COnadeha plane
4d + tod2 + 1$d3 +1 =
WEDl Si
615
W-35 +045
2-25
35 +
6-75
2-2S
-0-45
357 0+57 o5
-2/
ExPECTATION STEP
CONVERGED No)
NO