0% found this document useful (0 votes)
18 views10 pages

Dip Unit5

The document discusses various machine learning concepts and algorithms, particularly focusing on supervised learning and hyperplanes. It outlines the process of model training, evaluation, and prediction using techniques such as Support Vector Machines (SVM) and neural networks. Additionally, it includes code snippets for implementing these algorithms in Python, emphasizing the importance of data preprocessing and model accuracy.

Uploaded by

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

Dip Unit5

The document discusses various machine learning concepts and algorithms, particularly focusing on supervised learning and hyperplanes. It outlines the process of model training, evaluation, and prediction using techniques such as Support Vector Machines (SVM) and neural networks. Additionally, it includes code snippets for implementing these algorithms in Python, emphasizing the importance of data preprocessing and model accuracy.

Uploaded by

Kushagra Pandey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
ane eee a Nn “Gayo (suppeet verter Markit) 4 SVE hg cliserint mtg COA fier Lore pcherens eeartcing lata, (Superwiseat Learning HAs edlogritim gutpald an optinat tuyperptnt poly colegorres Whar yn auples * a Ging drsausn bh? poiats (Bue E Lhe) oto os ty fw Limca ty separable jou ® oe + ‘ Va . eS Tinrng Ranoweled ru sv = Reval 2) Regutacigation sydenann yur, N) Margin i- Margin bu berbenditar distance bia closest dada points and dee Hayperplant (on both sidos) > The test optiodgest Dine (hypeeplant ) ain, wartnawer wro4gin th Herwedaa Margi Maxiwect Hybucplant © . 3 The otest poids wl Hat wag in obibtcunce Wcolesled ay cousicliud as Subboot veetses® ‘ 2) Reg ulaxigshen i opie sv, claw Piewte avord watschowidy aota C= Dorge , rome B avufit C > dal , crower D vmolatittig plausible B)GAMah i > dahivss lowe tar hagnvanees He ewtertaon pupecpemrtt aH bepration dad A \ tows! slow Gawmg — polurs far from flaw si bl jis ae foe Cat entation > High fawma — pels close te plawible Qa Foc pdototion vay ae coustelee ® Low Gamws Volt wigs Ganmavele? UW) Kemebs 5 mattcomatics PY foe dramihouning dota => Using bow incor algebae « > vidtumut sv abgovitimn wre difheet Hy bes oh Korot pt',- Various kuneds on — Linear Koel, Nou ~Linrtar , Radltus gavist™ (RGF), Siguoid, POLY noumiol, Expoustinl Prog: At weirs weally usher With Dene wogie df Beprotio + > ahis ebpective we tips divausionnk bbacs Sorin oblyeehive va cares but uo. § climwrsions 4 geoalte Pon He uo~ Gy Sampess * . > ar LUO 9 poset O travuding bolus in dacision ¢ [tated bkped vetoes ) Ap ikls moun oftiedt Cong to 9h Loeult puprom well whan we howe Jarge dois bt Pe oe wal ws Ledger + / cod Cee dokaretlos work veise + => oy dpewu't profoum worl votes . Ie» tegot egasrer oar evcloboteg - vrunten 5 vm docwu't diretly prowelt ee Paro Cahesletiad Hovorgt cross Vale a Applications 1 Care dolecty m, chosstitentio, Tart colegorigshay, Shebly Stub SYM basect clawed dation fa Python t= steps Teobort Ui byavies 1 Yesport wotplot tbs pyplot as pit from skleam import daterets from sepearn modal _ polecta fmport qergin_ beet Splid from Skleamr preprocessing Wapost standacd Scaler from skleamts Sv prot SVE fron gieleamns weebtes heport Clair HOO “report qecurady, Store, Confusion wohl x Vwheet poaboeu as sus aoe yaotplet eb plotting mos _5 dokasete > Daad dot > trata test SPH tB-Te “oplitadats tm tray Qteatiey > standard Sule To nocwwlt’zn Gentes > VC > svM Coren FeV > daif error spe accent > ceased Fou Combo euroty — 6 C40 = fet evaduch'y aabin visualligshs + Shepre ead qwoge dalinel daotoreds- poad digits digit ¢ = KR = digits. cota ye digité toyer step3. Nowallge Q spt Yotest 2 gran test SPF OLY, yeteain, stecte 24a) Karan, ¥otest, Jo = teste $30 5 ort, yand geatee = spauslond sealer C) etaine Atoled = scolrn, fit — tome ye twat Audit 5 ecole: fyanstom (x-test) Stopes Rain svM ann Pit forms [Xetrain) Svm-modl = sve ( Kevnel = tybt! C=1o, gowns = +001) gym models it LA teain-stoled , Y-teain) Kewned vhf’ celles won ~ Pracae decision boywelartes Crtoubels jagutuigahion (Larue = Leis tobniouce fe me? gawd ¢ Conroe japluouee 4 each point ( lowers Smroet boudary” SHES? Prediction & evetoalt yePred = sum _wrodlad « preclict (xt eet stoled) ee = aecurety. Acct ( y—best, y- Pred) brink Ld accumey : (acer 244") pat (" Cenaificatin taped ww” ) pout (daatrfeatin report [y-test ye pred )) steb6 + corbuvim wabin conte wet = cosfuadin wari Lyetest, ybreD pits eme ( Figeiges (8,61) sng. hactwmo | Conf wet, omots True, Cwap 2)Blues” Ant ell’) pits BEle (" Coufutin wahin” ) pit. xlabel (" Prodichid” > pit plot VP Aurwed””) Jette Shore td) * : 7 x ANN Hor (moge Clowcigiestion | AN Ab 9 torrputel ora) model Tspiveel by hyqin .ateoutat Pewr O odes Creurons) wre y eth yausion brecesces (put, applics 4 wright & bree partes fimgh Activa Hem ath! a + ‘ > Fae) Drowns ey odiuahip vorights and Odaber Ae wink ae fre dounce hho predicted ond Athral oy pod bvenieers y Wages ° ppd toyes *. Take typ pentwes ESS ii) Hivdehow : i delou Jaye + prectas teeduves ig wei yes ins autivaion ee | Uy outped Joye | gives dnwigitolim IP” 2) wawent ET “ Zz ewrtb = Swit +b 3) auivaes arf) - gh fendered ve Lb Tepat Qegte 2 E R” par elt Aoryu wea pur 4 of olp ee ee WA o atc gotinae (241 z foc be Bore sop toon (25 d= ico ee Le ~ 28s tog (As ) ie pw -Yy =ore grencodsd tet sobel ak = pposite? tefies® oR” ti) Raves peop aga tian. Goat & te updols pacighbs © yatswrige L004 fas pete fore descent watt! S ad aL wew A Fw ieee ee 82 03, -O | . as 2) pels Pole AL oP te © esp se ie © 6 ; For 2x8 Mwape ANY hese Chg dicotinr Cede: — bepuuk picwenies t- Tapert murapy as MP Gow prtearn dotoweds Gow pe ecens model selection tebord rain tect $Plit Boor pcioet spreprereshy impor Auto Eucedec gtandedgcole , Gore geteotn rabies teapot accutey. bbw word rot bel spyplot cs pH faapoo? Dowel iyi t A DS local cleats gigs = Leesl-oligits ye = digits. dots yc digits: toy > Newulizgg hor a ee stole = eqeudeucd stolec |) bats godr - Fi pec Qe ws puuot aunt Hs aes Loc wriieetd Dini pncoder = QusHtot encedic (sparte - output = Falke) o/oeundeel = qucodie. AE foassjoon (Y: Hbebe C11)) > painter split yetrain | y~ test Yeeneeled , beste Mage —> AWN corpennlion ——aoonmee— juped S1Re $64 putadhon . Devpee = 22. ert put bize 210 row fsate =o epee dyS = (650 Ww = ctysinteet Shirt (% giteain ete SE, a e125, sctvodente shee UE) E det sigmetd le)! pat V/UL+ wpe eeP LX) aet grgwe il = Auiveve CA)? poke xe ree det got wry (2) 4 expe “pr e*P (z- ape sem (ERP, OE chuo ye peed aap emac (2,481 21, jeerpélin s =e )) weber, e#P } Pa , veepdtens > Tt) ooh grass enbeby — 1A> We lo epeilor = le log [y-Pred 42 psilon) mp. sm [y-bac® MP aged POO l OAs =\)) > Triohize wstatet & bins nPs wcord om * send L42) pe sao wreand a (apt 2132, i riage! by = mp. 24 Aedddene $13) wre npesedom + aud (wislden 15, gubbet ie) * ° coup zerslly putpers!Bey) wile woe > Sosa Weed = i) for epoth rromgr (epoels 5 aie “p-dot ta teraty 1) aby Wie siguord (2) ae pup dodgy ter the Aye go¢+-}wan (22) fh ees colee me A Los = Ur0ys— aubeby - Leas Cy-traia , 42) Loys_ctrtetery + apperd(Less) H Beck pepap he de> Aree gorse aw? = ap det part, dz) gore ape Su (AZ) Antero, Retpeliog = To ) = Ce +) we dal =P alot (Az>, a = gal * sigmoid dsavatiee (41) dvi eup-dot (atau. T, dz) Qv! © MP. Sw (dz, axveso, eorpelins eTwe) H Gardiet durweuT apdete _ Lopate % Av?! Nee eee edb) we wade det ee peaks % elo2. It (epoch +1) 4, W0== 0? pur [¢" pects § epoch +4 / Sepoetsh, Isxs & Boast 4” ) a> Folk bass . pit. plot [toss histregs) pit. AhowLy > wpaluats_ mod Zz - best = mp. dot Uy test, WI) ESI Py test = Slhnotel (zt bese) apr test =np.dot (AI best w2) + do Ay test oc teofnanr(z, —tesy) a o By Peaclicbon @ pec A | ape aegnan (Ar - eet, ants 4) Ye prea SEE a oegqveny (y-test, anise qeesty = acaued~ beet (% dove y-Pred) w13+245%') pit (F" test Acme = {aconed

You might also like