0% found this document useful (0 votes)
49 views18 pages

DWDM Lab

1. This document discusses diet and nutrition information across multiple pages. It includes tables of nutrient data and amounts for different foods. 2. Various data analysis techniques are demonstrated including data loading, visualization, clustering, and modeling. Pandas is used to work with the dataset. 3. Machine learning algorithms like k-means clustering and decision trees are applied to extract patterns from the dietary data. Model performance is evaluated.
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)
49 views18 pages

DWDM Lab

1. This document discusses diet and nutrition information across multiple pages. It includes tables of nutrient data and amounts for different foods. 2. Various data analysis techniques are demonstrated including data loading, visualization, clustering, and modeling. Pandas is used to work with the dataset. 3. Machine learning algorithms like k-means clustering and decision trees are applied to extract patterns from the dietary data. Model performance is evaluated.
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/ 18

DIET Page No :

1 Duntunte the
() Londng tu dataut
tu
Vaialle
inepot pandasALad
datast = pd. Domnts/ Mukecw")
prat (Aatat) FLAT TotJ
MEFA DbM
M+
250

2 Na 220 240
N
210
4 22-0 Na

(4)

ataset rM4,o' MEFA,


et Vaille:)
puiut
prt idepudut viabla)
pnt (x dhd)).
DIET Page No :

depudat Naall

indepudat yanialle FLAT


MEFA
250
24:0 23.D
25-0 23. D

3 Na

datast u (latayet mean), unplaw-Tru)


latalet
FLAT ToTAL
Mu MEFA
25-0 230
24-D
23

2),2 220 24 21?5

220 23-0
)Dnon tvateJ pp

povt pd headiv(taset sew)

(ltalt,
alegoveva")
( aidJ_lkast.hnd))
print
AMoUNT
A E

25,0D0

21,00D
2 25
21 3°,o

23

) Sug,
pdi id-uvttact u )

detaset a is

stondandtisl )
DIET Page No:

p t (xuled (s)
|C-o?S |H9036. -I124749-o5 o964)
ot|9443L

nen

ipoxt
J]-pd po d dtast w)
clleau wmod etan
'but plt
y taet [tagtJ
, axis = l)
x_tuain, xtut -ttvainy-tut
tut splt (x) tet
pit(
-tvain aape))
ptlTubny
Demontat
Lour
pd

Cow,-valu
dtastC' wln' )
pason' lovveltin o)
vt-val', pvd)
ro2342 179 1338 86
Vale

(8) sllen.etiles wise impot

()
(utt,t)
intensutao

3))

(imi
(sdi, t.
t
(D)
Euiden astane.
pt
stane Clulpot))
poiwkeli)}+2
-
t CpointcJ
Jstae matt hqyt (litan)
pointi

pet

( ) Mauhta.di
munhtaihnelpti, pait),

Jstauee ab (pit ti)-point2 U)


t
pudas
<lautast
skenu. modd ltih taintuligt
kleann luneatmodI
nSove.
Alamkvies impnt an

bogto oadboitane)
bostan teatuames)
d`MEDV'] - Lotm tayet

x_tuain, x.tut, y-tuain, y-tut


- train tut (x,,tuk-sig-oi,hanot.
=4 )

Linankguenl
t (xtvains ytain)
l.pudit ( xtut)
- d-l
tvor(y.tut yvd)
prntlMia
pint (R. )

21. 2911|44t 2 L|L


Mean Synd :

R Siove
5) Bu! Disia
datast
-pog
import
iovt
bad iwis
sllea mlddetim povt haintut lut
tan sala te impovt Duin Tree emer
Jlea mdies inmpt aumg-iave
ivis loadivisc)

X-tvain,x.tut, )-tuan, y-tut taintutplt


(x tutije 42)
(xtuai g-t
y-p - dte pdit lxtut )
sove Cy-tut.-pd)
y
Atat

Pandas
lataset: wyot oadivie.
tuaintut
lean naile -bayes inpot 'aaiB
mebuils Sove.

Name'

Tuu)
mode C(J inple Tvw)
uln-(sex,
Ebad'J)
X
df.Lot (l'saevd), alis )
dl's.vd] tvaintut
tut, H-tvain .-tut -
X_tvain
teat- s
Giuian nB()

xtut

ptlAwg

tL1.
D.96882_6B |56
:
Awy
gat kemat.
uinate

ipovt paudat
wlakd. fuyuat-puto ngpatapiri,
aoition-ulu

transins

traniai pp(tn

te Ctuaniadin). taf(taniatm
te

0bl) -Tvue)
wye colhanes
min
woatina Cpynt-itamet
) min
mtil
(Jyttanat
pnt(ula)

sppt (alaad)
( avoudS
05|L8

437

436

L44 wows

L)
b19981+
(man)
(butte D9166
tt

pot pauaas
slea
elea. tati impovt Lond. ivis
ivw CoadiU)
At p batfua(lta =iisate,
ivi fatus namu)
LMeans ( n t u )

t
puint( knman
44k-tutn)

2ty636H |43384|
|S9olb129 43135481
3418

6.0|24| S421?
665
datat

mpt

ives loadiis)
ivis .

-n s
Colemns
ke A hmetive uateig Cnleuta-)
pnt (he.tll)

2
DR SLAN

DBscAn
slelean dtat inpt Cod wes
iviw bad. iis )

ivis eatu.nam)
DBSCAN Csres .minople
son

-| -|

-l -|
D

-|

You might also like