0% found this document useful (0 votes)
19 views5 pages

Ai CH-4 Assignment

Uploaded by

hardik.nankar
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)
19 views5 pages

Ai CH-4 Assignment

Uploaded by

hardik.nankar
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/ 5

Page No.

9|
Date oG o&2y
nt- Libauaies and Datasets

Cplain Numps PandasRMatplot lib libauies.


Ans Numpy
TH isa findoamentalibzz fox scieatitic computimg m
Largemuti-dioensiaaal
Python H pouides Suppozt to
collection of mathematica
Qay S and mcttices along_ witth
functio to opeate am these amays effiely
I+ epresents
1ndaay i Tt is am main object 5 m ndamy tuple of
gaid ot valies, Same datu type imdexed by
Mon-negthive inteqe R5

create
Anay Cxe crtiom t pravide s VaiauS tunction to
aayS eri- yo amay fnna python list
can Cre ate am

USINg mumpymayc can be used to create cays


imiticlized with ze0,cnes

3A ay Opeation # enable s eicient elemet-uise


opercion ahd
operiom om cmay S, such as athnOctic
tignoaetic functiom Thece opeutian clae uec toazed

Livexsal tunctiomi H pouides a lazge collecion ot niversal


fimction Cufuncs) that operate element-wise am amays
imcudinq mathematical hunion eq mumpy sinc
stdc)

sTade xing and slicing TB allows indexing and slicing


amdyS to aCcess Speciic elennets aows, coloums 0r Sub
mays This enables effcient dta ehactiom amd manipulecion.
Indexing stut ta,
Page No.
Page No. Dato
Date

Shape Manipulation Dctu input and outpt TH pzoujdes funcion to geud dodo
Tpzouide s facion to chamge the shape 9
Excel TsoN dad
oTe dimensions t Lamays fm CcaiousSle foxocts_Such us csu
tunctian ike mrpy Aattemc) funtion fea eris corco.only
used
alleo you to manipulcde the shape nd lay aut of amays ncTe The pandasCsuc)
load dcrtu fuo a csyfle jnto Dtutaarne.
acoTdinq to yOuT mee ds to

Tt fers powezful iodexinq


Datu Selectim andmanidatioo:
Baaadcasting 4 is
perain belween
a poueA feahie af
amays ot dHeret shapes
Nunpy thet allows
as lomg Cln selecticm Ccapabilities to
esthactilHea and 0anipwlede
l b el s a s
You Can Se c o l o m naTOes
as they ae compi ble dta in datz fune
decta
well as mioeaical indexing to access specitic
Linean Alaeban pDv0desa ich set ofhinctiogoo linea
puide5 a uaiety ot
alq ebu opeTatio, Such as mhic onliplicatiom,mati 4Data cleaninq and prepzocessinqT4
duplicate valuesou tlie s.
LnveNSIoo and moe tunc tì on to handle missing data
fnctiom like fillnac), duplicated O assist in emovlna o3
values Ldentitying duplicate s qnd
Randon Numbe GeneTaion A iaclucles finciom to Lanputi n4 missing
genexte aadom DUTmbe tamo Vaaicus pubabiltË elishi han dli outHiers.
bution numpy Xandom ndule pwides functin i ke
Aumpyxandnmz0ndoc sData Visualizaion Ilegrates well with othez Athon
visualizaticro libaaaiessuch as Matplatlib amd Seabon+
allowinq for easy datu uisualization Ihis fmtom
PandaS
T4 is apowehl ibaun tor data mcEnipulation ch cenalysis Simplyfy 4he p2ce ss ot Ceating basic visualization
4 feas DS Such as datetrames amd 5eaies whi ch diaecty fnm Seaies
Cncble casu handlingcleaminq anderploationof
Staized dota Tioe Sezies funtionality T4 has ertension suppot fo
time seaies data ,making it sui table fog analysinq and
Dt faoe i Ihe cemtha data Shucure m Panclas is the q0qnipuleting tenpoal data Pandas_also cffeS datL
ntume T+ epresernt a too dimensional table do
Zanqegemetion Suppots tine zome hcrndling
e.shA labeled aows and colWTOS Cach Caloum in dcrto f i
1scalled seaies
3Totegahan uith Nump and Scikit -leani H integ des
asith othex libauaHes Such as mump and scikit leam
Convet between Pandas DS, and apy amays eticienty
Psge No.
Page No.
Date
Dale

caction atEpie c hart to display


Matplotlib TH is aplotimg libam that pvicdes a wide G
ae chd1s: T Sup.po2ts the
onge at aption fo caeating staic, amimated paopaions oa pexcentaa ofcategoziccl data Hallows
chats
wldely sed to geneating chats scatte plots amd tua cSploded pie chaats aoddm
olhe tapes of plots
plets io VazGUs
allowssusetu Save
sauin9 Qnd cpozing i T
1
Pyplot nte taceiModulepzouide amaTLAA -Like intertuce hìr nats incuding PNGa Te EGaDESuGa amd TOATe.
intexactivelsuslng the
tur ceating,custaiz ing plots t emables users to Can be Gaved pzoqzasoaaicay o
4uickly geneaate basic plots bs usimg tuncian like G101 pDuided by Mtplothib
plotO, Scatteac)
2- iHe down installatiorn Steps to install Juputeg matebook 1
Eiquaeand Axes: Tt is tap level Containez that halds all Jdy e do use Jupyter Nteboak 9
Hheelemen afplot 1mcudinq one x moe Axe 6 objec Ane Tnstalling Jupytey Nteboclk using Anccornda
Hepresent individual plot with specitic se of 4 is an open- Sauce saf twgre that cotaims Juputer
Co-odinates spyde etc that is used fox lazqe datu prncessing heauy
Sciemtiic conoputing
3Line plots offers uazious types ot line plots, imcucing
line qauphs step plat S and scatter plets line plts ae So domload Anacomda Visit htpsLuwow abacendqCom
CosoTOnly used for viSualizinq tends, tione se aies deta T tecommen ds veatying the integaity of installe
andCantinous uaiable: aftex dowaloadin it.
Gto to folder and dauble cick to lanch To paeveot
LHistogzams i effechve fur visuali~inq the distibtiom af eraiSsiom enos,do mat launch nstalle huo tavaHe folle
Comtinausuaaiable, allows- SeTS to caecte tistagxams Read the texans and click I Agxee
coith Cusamizable bin size bln edqe amd nomalizatio T+iG e Comnended that yo install jSt toa me which
opion asil install Anaconda distibuion to ust the
cnemt
ncceuet Ony Selec am install tor All use t uou meed
S 5catteg pluts Tdeal tor uisulzing aelatiamship betweeo to install fo sers accaun n Camputeg
two cunhnaus jaziables. Tt pxauides hinctior to crecie destinttian
alder to imstalL Amacanda cmd click Next
Scatte plots ith ophohmmket ShylesColors, sizeS Tnata_Anacondd to direct pth hat does mot Contao
pace6 oY micode charategs
Page No.
Page No.
Dato
|Dato

Choose ohethe to Anacun da to uauapath eui aummncnt


Vaaiable o eqiste Anacom da as you detauH python. you Ccplaim hocwto dealth inbalnCed decasete
plan cn imatalling and mnming mutiple uerson cf Anacroda Ans.1. Resampling Icchonique categoqies
distibuion ofclasses.o
ox multiple veion at uthon dCcept the detault and lata oClSahen the
ignihicantly
leave this box checked n dataset i skeed asith cneclass being
click install and click ex+ m0Ke prevent CpKe valed)4hanatheS.
lo more abow Anacamdascloud metoork seniceqo to A, nder5amnpling =
Reduces the num bex at
ttpslLwww amacomdacaa lcodein -claudi Randorn undexsarapling
Successtull nstallatian yo cill see Ahe Thanks foz Ccamples m majazity class.
" cluster Centoids Reduce aajaity class b4 custeain g
installig Anacond atcustez
CLnd 4hen usin centraicls
Vetty yolr insiallechion
B Cuegsarapling -
Gtenextte synthetic exazaples attes atheg Ahan duplicedin
Installing Juppteg nctebcclk using pip
H is a packaqe managmet Systen used to in stall exi6ting anes by ntepclating between minart
and mandge staaze packages Zlibauaies cwHde in class instunce
py-thom
Duplicate s andom examples hm mnoatyckss,
4 uses PupI as the detaut souzce forpack ages and
4hei dependencies 9 Algeiimic Appnachesi
pythom -m pip install Fupgzade pip A class weight Adjusaent Many algozithumn allow you tu
Get weiqht far claS Ses giuing Tmore impotance to
Laimching Japytea i q0maits class
Use 4he followinq Coromand to launch sing comoncn line B. cast-sensitive leaming Adjust the algaidhum ta talke
upylex natebaak. oissclassiticatio n costs inaccoMnt. penaizinq misclassi
fcctian ot nincity class moTe
Programming Paactice
heauily
Colla bonzting Access Pnjects and toolS 3Anamaly Detectim lechnique
Data Oaqanization and cleaning lreat the mineatty class as anoTmalies and lse anom al
Data visulization and shaginc detec tiom algoaithun to idenhfy thexm
appzoach each
sheagth
ot 4heleuezuge methods
to uaious Commbinig
metheds Hybaid
datu image in
asefl especiclls class minoaihy instance
af
new caeate taanslatiom
ta Scaling artathn lectmiques
like
Augmentationi Data
forevaluing
pesdel usefl PRCi and Roc
cetuset. imbalánced tox
iofumation
han Moe SCoRE Re-call"
E1 Pxecision,
4Euauahon
matir
Date
No. Page

You might also like