0% found this document useful (0 votes)
51 views17 pages

ML Endsem

The document discusses various machine learning techniques for clustering including k-means clustering and hierarchical clustering. It provides examples of using scikit-learn to perform clustering on sample datasets and visualize the results. Methods covered include k-means clustering, hierarchical clustering with single and average linkage, and dendrograms.

Uploaded by

Tharun GT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views17 pages

ML Endsem

The document discusses various machine learning techniques for clustering including k-means clustering and hierarchical clustering. It provides examples of using scikit-learn to perform clustering on sample datasets and visualize the results. Methods covered include k-means clustering, hierarchical clustering with single and average linkage, and dendrograms.

Uploaded by

Tharun GT
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

M«hinee

ENI) SENI
ng
assiGn mert
paperASSIGn ment) Bio2smE |MEO

Mecn Absoafe Eryy e)


MAE
MAE -= - 9 |

Calculatn a t MAE

+ (205- 21|+ |44-24H |2l-224(2-12ol +lgg -1


224
ME
lo 22-4
Mey sauared y msE)

MEE (28o -1 5)*+6-of04i)+( -24)+


(20S-21)+q-22g)+ tio-220)4lo|-2|1)-ot

MSE= lq44 l944

Seniiv = e pos hue Te postiet Fala


T)
3 l3to=2 a
Spei sity= TNaf2
TN+FP
saR houetk imptS mehks legy-
lay. Sk brom
meng impt
k clstey seleosy. Gs0n
NPNUmPy IMAt
code
- The
ctes. detined betey înditate
Ste Silhouta highey A 1. 1t tn yages ta
ustos.t othey (ompedt clustey Oh ts
/et cuSmilag
y how maSUYes t
ate. S\Owey
dvea8ig
at Steets Wess where clugtes a&
ey ophmay ansents epe pot the inpnt
os' clytes.
The numbero 6uncho
a g
at m clste wthiyplothirg inalves tt
method
- Hbów, (
clusteing kmeons Clusters
in
barof ghtdetemine tehniues
to D(onmon 2
Recau)3 ecesnnt
tFinding
methac.
WcSs=t]
Man clustes = 7
"stest)y
it='kmemt
kmeang= Mens (n- dyters=í,
yardo m- Stoje41)
Kmens. Et (Pins)
wess.apendc kmeng Inestir?
lottig cume
plt-plut (JcaGe C, Nan- clstess1) Wess, Matkey to
tine style'
pet. xkbey (Nmber ot cwtes)

pt. show.
t From the pot t tecsmes clea that, humbey at
lustes mugt e gqual to the
Pyesent.
Îmeot matpbtlib. Pylot ag plt dendogro? , lnk
Fbm scipy clastes. hiecuchy impot inkaye
|t Gen distn(e mati
distonce et = (o, 4, 2,4, I3

3,,b, 4, 2J,
L,5,4,6, ),

# Mechani cey clusteing wirs Singte, lineage.


Z= linkage ( distance ut, method=Single, metic=
( Euclide an).

pLt- tigune (Pig Site= (G))


dendogam (2)
pt. itte ('Hieaschct AgGlomevahe ilusenórg Sigie
lintage)

pt Shaw
Dete ctig
mutticcllireasity
(onelatio) mats aiyoTse
It is a tabte -that shos
(o-ttiients between all the vaaiables
Conelation
set. A hyb relation (otktijent
in aa
oin datu
may fnolicett a shong dineas belstio
Cl o-)
-ship between t o ice.

\asicnce IntlatiM tactw(iP)


VF iS aa Statishay meose quanh hes,
the Etent to whchthe Vay e c ay Estinated
due to mast
GESSion Co-stiCient is intat

Appooches to handle meltkcllinegityuc7


Remove highly Comvelated Vaa,ableg 1 Tt there
is a paiy ot vaiables sith Crelatcn , me
t t h e Vaicbles (on be meyUeg b n the
model.
Someimes, mutcline4ity can te rdy<ed by
trens hoing esbes, To tuo Variables ae
highly conelated beCau they ace bot
log Soe tans bemig hey to thebe nghay
Sale may educa
Dimensinality PeducHoy techniqu Such g
Compohent an alyss (k) Can be used to educa
humbes aalables iy dataset This can hel
to educe oliney by s;mivatirg edudug
ooVaeialeg

Tmput matplst bpy


' plot cs Plt
fuy sblfeay. meel secio imast tegt-spdt
frum sk(eau preprocessirg tipo sandadsalers
Cabel Eno ders nepot Enodes ps
um SElegtee impot eisionTee clarsioe.
Frm Skaeaan mgott acuacy-sre, (ontgin
nabi, lasi bcahn-s .

Emplbyeeatiksoy
dato. head )
Sns- pcai plot (da, hes ta+k n,
diag irel at)
Pe showw
elumny)

Cttihon? is=l.
A= data: doty
dta 'tia 3.
y=
tin-tet- S,t
Xtin X-teyt, yhaih , 4-teyt
( 49) test Site s o-2
ando S t =4)
Sle = Standaedseale )
X-tain= Scey. 65t- hany kun (xtoin )
xtest= Sales. tin mahe (Xt)

dt_clasiber= isioelloesir(Xnckom- Ste =42)


dtclassi bjey . it (&txin, Y-hain)

dt-peictios =dchesi biey. pediC (X-tey).


t+ pe,temmone metics Deis joy TRe

print (" COLy Soe:, accunaystoe (4-test, dt


pyodi'choy)
Pont ( Con tusíne mai:n, cmbusi onmebi
4test dt- Pedectins)
bsay
ardom Foest clasj

Nusy hathes

Alemcte hypothesis

4
(2 13 12 4
Summay 6y aphs Glen (Stati sthe s).

Sample Ge 5
meay |2.
St. Deioctiy 24 2

Vacne 4 35
O Sum of Squads (s S).
Vaeicotim SsCB):
(a
Leteey qup
)Ss(3)=

= $(lo-e) t s C8-l+5(I2-19 =46


sthin ptp Vaeaton
SS W) =

o (G5)+ 4 (4) + 4 (3-s) =GD

Degpee et teedo)
behen
we hove three
three payhs
aphs So, do .

( sithin

444+4 -12

tolke do is ne leuhan Sonyle S) e


=ls-| =14

( ) vasion le
MS(0) =20

F- statiStic
4
bry Fess cut 5% level ot siicae hy
V l2,

we vejet nay hyrothesis, uhchs means

Impt mpy sg n

t Gien Vaes

betg -l= -6.3|.

lawnch temparate (b6,3,6, , 7%,


damey

yetusy

þredicting rsbai aity toy eeh temparatoe.


pssbabilitiey legjstic- segessin (launch tenjo
-yatne)

launch temjaA atne

Plb- Satte (launch tempqatna, pretbii tig,


(= demase- too iy amap idis
laLel- psbabj dity )
ptaabej =( launch Tempartue
Pit: ylatey (paliaty a anmag oin
Vt teCpstbosit ag damige to og
us launch om paahel

plt. legen)
t. ia (te) Plt. sha)
methemahoa
USi Dellmen sqats
VS) PU +VP)v(s).
where
VS) Vahe af Stak

v ) 1s vahe at Stake s

Fy Stle s
(S))
vé)= 6to4 (o-sv(s)v
Cloopir; bá e to Ttselt wt
Fy Aade S
Prdoabiat o)':

G2 v(S)= vcS - b|9vs)

o.42 v(Su)
6)

V(S) O:7x2

(1 Establiching a Deiso e

Ralevcnt Degaae

GVk2)
sels

foot node ls n toty umber o applicants CI9)"


becane it ine aets nd epoe jehd the tatig ri
whee all appcants
rhe initi tep s caeulag . The initial Split
tn ether os ret the Student us

deqee. This deision is jiable


avelestrt
hing revcnt degree is a turd amenty
becaue
6lto ut

agiants whs de not Yneet

Seps t modei mti ple egoessi on nedel


and under stard,relatinshg batween the
t pebine
derendet vaichke ypany and independant
Vesiuse
2 Dat Colehe, Gather elevcnt cta y the
Vaiabeg t inttrest. EryUne thet detat is
Covpehenive, acafe ang epxgertti ve ot papy
3 Data deonirg chect the misirg eles, tHies,
ahd iorgi stencies in the dataset. Impe )
Enge isshg vels

|4: E*plgty Daa arcy S-E)


E4plog distiu c ejcsley, Eucmine
- Come<atisg etuen predjctos, and vjsual}e
sektjghip between Vasiesles
S Featve Scaling

Veiables in kcise Scales dibtes sipi Giconty


&aiabe seletlsloc
cheuse ndepevdent Voicley thet a
emos selevant to, p%leny ot hand . Diwide the
dahet into tainig and teztig its (Spit
Cspltdotdai;i
model;
Y=Bot Bit
Y’ ndoyendon, Bo ntsce.

Vvasiales.
eay tem

2Gvauati metie Such ay mean squased r

)
(a) tn onoy
aekei¡- Tdert biCatio) 6 attr,
whan horig in hgh
dtmengiaroy
challeg chd issues Guise he
high cimensionay space.
5:-when duteset hainy mauy betn dentleyly
mecnirge petesns
Feote engieenngir
Se<ativg, tors bomirs go Crecti tetes
boryendata to imnpve postnmane ag
mahine leasing modelS.
tet dta intD urory
eeyentaton.

method sed to ldatity nery tacts


Gs lelot Vasiebley het plan patens
l Comelato L hin obseyed ugei as les

Fats analysis
dimansi onality eduhi o)on
technies that tsorssns data invo new
lo-winale Syster, whee be Comonents
Carptre mae Vaejane.
ARsMA Modol < CHuto Regecsive ehtgray
Modelli Moing henase). is a tme
Seies bse casng madeR that Combines auto
dyegeg sjn, dibteenatg, n moing awey
to Predi ' y atut Gte deta points.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy