You are on page 1of 28
SUPERVISED LEARNING ALGORITHM ] Tea me tuto) well as output for 80% data. The model learns from training data only. We use different machine learning algorithms to build our model. By learning, it means that the model will build some logic of its own. Once the model is ready then it is good to be tested. At the time of testing, input is fed from remaining 20% data which the model has never acen before, the model will predict some value and we will compare it with actual output and calculate the accuracy. Qu What is Learning for a machine? ‘Ans. A machine is said to bé learning from past Experiences(data feed in) with respect to some class of Tasks, ifit’s Performance in a given Task improves with the Experience, Pere (defined Labels) Q2 Create a diagram to show type of learning for a ‘machine? : er Gere ‘Ans. Ug ‘Ans. Linear regression is a linear model, e.g. a model that assumes a linear relationship between the input variables (x) and the single output variable (y). More specifically, that y can be calculated from a linear comt variables (x). When there isa single input variable (x), the method is referred to as simple linear regression, When there are multiple input variables, literature from statistics often refers to the method as multiple linear regression. Linear regression is a basic and commonly used type of predictive analysis. The overall idea of regression is to examine two things: (1) Does a set of predictor variables do ‘ good job in predicting an outcome (dependent) variable? (2) Which variables in particular are significant predictors, of the outcome variable, and in what way do they-indicated by the magnitude and sign of the beta estimates-impact the ‘outcome variable? These regression estimates are used to ‘explain the relationship between one dependent variable and, one or more independent variables. Q3 What do'you understand by supervised learning? ‘Ans. Supervised learning is when the model is getting trained ‘on a labelled dataset. Labelled dataset is one which have ‘both input and output parameters. In this type of leaming both training and validation datasets are labelled —— Q4 What is the meaning of training the system? Also define the type of training provided by the supervised learning. ———___..____— ‘Anus. Training the system : While training the model, data is usually split inthe ratio of 80:20 ie, 80% as training data and rest as testing data, In training data, we feed input as ma Se wae ore me a of prin onal? ee in Sag pe cig Fens the repesin might be used to ey te song of he eet teat ne sept vara) have covey nent arabe. Typical uestons te what the iene of eitonship between doe and fle salen 30 Sinn pening ope and income Sea canbe one ream effec or enact of changer, Phat he regression anijsis helps oto Ea Lis ach te depeacent variable charge with iki neve ov mere adependens vies Aypietl Sten vow mach abit mies score 0 Social 000 apenton mrteng™ ‘Tr rence tsi predicts wends md fetare aloes The sopenion tals can be used 10 get pot Ce pel genoa “What wile pie of ole ——______— Tot liner eqreion from Sst? pes pain ee ae eg re pect fd fpr icing pana concerned with ming ero of ‘del ang nw sorte predictions posible.” So Spenn of epaabicyinapled machine arsing stron ree sigan fom mat fern fet ‘Assoc, near regression was veloped in he eld cf wane soda sa model for undereantig the ‘CiStcsip beeen ape ad opt uml vara, Tots ete bovewed by machine lasing tis both © nal sgorstan teachin eating lari ——E— SS Ue ow te aie bays clastir works machine learaing? ss Fac hans Bayer camie wa wipatoreard od pooer SRT eee incncane Event ne are rk SErcaasecwid matos fects wits some atte igen my Naive Bayes apron ate Bayes canter pes gest resus when we te fOr {cual du ani sch a» Naural Langage Prooesing. "Tense the Nave Bayes laser We 081 ender te Bayes here, == Faas ov nian a Re Cra ed) incr egtrson sa logan epesvon wer Bate tingetEiference len m whet they are wed for Linear ‘epnton sg are seo pred forcast aloes bt [Epa regremien und for canton ws Ther ae thing wie tains Sanetrbn cag (hsp here machine earning igre can mateo ihe renner A vely simple, rudneral ae penton foreseen ithe opiate ees iin [i Prete Super Yor Machina? ‘Fan Inrodectve 0 SVBn Tn machine learn oppo" ‘tr machines (SMa ass appt cor eons) are Nipersised learning models with ashocletedlenraing ‘ifs hat tata data ud for Cashin wad regen ais i Seon Veto Machine (SVM) i ucrninive caus formal dene yssepuing pears int ‘erde given abled tining ta supervised lain) the ‘pst supe a opal hype wich tegen ew omen ‘An SYM modelita representation oft examples as rns n pace, mapped sotto te epic tcgrcr te ded by clear pop tat sas wide = pie {n adn wo perorming lina clasieation, SVM ct Cfietypeform snowlinear elsieaton, imp ‘Seppne puts io ighdimeasioeal fee pees ee Tin rte doe ntraangs of rondo fra alerts Comper wth ater clasifeton seri. eee Fan Bele av be sang of endow fore een perc woes cassifeaio gore 2 The overiting protien wll ever cane when wee the random fore alg aaa) elsietion potion 4+ The random frst algorithm canbe used for both heaton ad eresion ak “+ Therandom forest algaitin can be wed for ere ohh et eigenen ‘ies out of teal eres tom eng (aS) Trea Tin Lapin tear regresion adel representation Fan Liar Ragen fan stactive dl because th ‘presion p “The rpesenuton inet equations pacific ofp ales oe wltion to wich 83 SE apt fx at sto np als) tacks Rohn ipa sles (x ad he up vale ae numer “Tear equton stg ne seal ator te inpu e orcce elle coe Tien: a represent Fou) Onc wise eoeficen va aed, Big (iene ur astnional dees f femdom 5, ving pn (doen on a ro-dennona! plot) and is often called the (araper the bin cote Torctampe na simple regression problem (3 3¢ sande sey) efor of he model mou Be y= B78)" In gherdimeasions wes we have more ha one snp (oh elle plane ‘eration therefor ofthe equation and the ‘esi nls ned forte cece (eg Band Date Breen, This common f ak aboot the complenty of + cared by abo save) bot mac Gy ammgenren (eg nba Nt Sy hccnage aces tom epee TS, open of Sepervined Learninn Pree minerion: It is « Supervised Learning tsk were so eving eine ibe cures value) For exes a uae Purchased has defined els. 00 ‘a se contomer will purchase and 0 mesos that ‘Somer won't purchase. The goa! ere isto predict discrete ct petonging to a particule cats and evaluate 00 the TS pcetiey. i can be either binary or malt class hsieaon In binary clean, mode predicts ether Se one bain cate of mall lass classification, trode predict more than one las ‘romple: Gmail classifies mails in more thin one ase ne socal, promotions update, fru. Steer | Gender [Age | Salary | Purchased] revrsion del ike ier regression. This refers 0 the ‘Mier of confit ed inte model ‘Whee a conficient becomes zero, it effectively removes ieflene ofthe npatvarble nthe mel and (Berta fom he ection mae fom the model (O* x= Ox Tua comes ran 1 repre ts a Change te lering lgrithn Yo reduce the comply of ‘egrenon modesty puting prestre othe abot sof (Gecouficienm rng some tars (aire mean often pt conn oflearang? Expl ie Ope Jy Sapered Leong ‘Ans: Learaiag te procesof acquiring new. ormadiing ‘Sining Know Setavos sill, value or preferences ‘The aii to lea spssessed by human, animals and Some nacht. Theres als evidence or some king of eats10 | ale T9008] Seroset_|Male 1381 20000 t essere Female [26 [33000] 0 Trae she | [-1se08946-| Female [27 | 37000] 0 ‘seouage {Male [191 76000. H [asteeWe-tMaie [27 [s8000. real ssonnes_| Female [37 | 44000. o 1se5u029-| Female-[ 32 [ 1so000 [1 13600575-[- Male [253000 r Ts727ati| Female 351 650000" 15606774-| Female [26 | s2000_[ 9] [[ise6136-[~ Male | 20~| 46000 [isso [ale [53[tano0_ [a isesran6-| Maie—[39- [$0000] —t 15733885 Male [4725000 ‘sign dst of hopping ore which i sf in brdiing water acon wil pase pret Pt ncn ont so hep Stee Pack ie See 11 ‘illprchaeandO means that customer wont purchase E Regression ri oo Soperined tapatshving concn eae? Carn tak where ee | ree eee eee ee eee ees for "Example ia Figure 2, Outpt. ‘The goal here is to predict vale as much coset ). 13. Naive Bayes offers you two hyperparametersto tune {or smoothing: alpha and beta. yperarameterisa prior parameter tht are tuned onthe irining Set to ‘optimize it In comparisos, K-NN only has on option fortuning: the “K", or number of neighbors. 4, This method is not affected by the curse of faturest inde oot dey sige Set St aprech. The Hea sage, we wil be aang the dghe sds using the sue best slit speach Repeat he fs? ‘ages ntl we frm te tre id aso noe and having te (eae arth lea nde Final we repeat io datas create a randomly seated tes. Thisrndomlyeetedreer fomstherandom forest, Ra forest prediction preudocode : + To perform redition sng the indrandom forest sleet ater the bom psnono, Se td tors the pets etme Car) 2. Calculate he vote foreach predited get. Consider the high voted pode urge the Baal prdietin fom the random forest agri fore algorthm we need ops te et ees the rales ofeach randomly read tes, Suppose les ‘ve Frmed 10 random decison ies ofr he not neh random forest will pest diferent aget (stom) fr the sume set etre Then by sone ng ‘ach predicted tare, voter lb sali Suppose he TOD andom decision tes ae prediction somes wiger ‘ares, then the ots ofl noting bt ou 109 ‘andor decision tee how many tes peicton ihewie for other 2 wget, 2) fi geting leh ote. Let's sy ot of 100 random ston tes 60 ees tre pediczing the target wl be Then he flan, forest retreat a8 predted age “This once of vting shan majority voting ‘aaa. UnsurERviseD LEARNING ALGORITHM 2 (etc What seca re mang im to chine? —$————— ‘Aes Asoiaion Rue Wining i oe of the ways 0 Rnd eras at I fade + Festus (ines) which scr ogee + Festus mesons) which ae "corel 02 Whew use Astcaton Rue? ——_______ ‘Ass. Asin Rules ad in ay ate wer fences ‘ak ony ovale, Some cuties aed, + Market Daset Analysis poplar aplication of ‘Associ aes, cle win vat wea X aly vit wees eplento hee [40nd noe S100) ssi town tewe (© Wiser ne eptcatons of sora cana? neice dicen ‘Ans. Applicaton of Aprion Algorithm ‘riot lgrith i wed in flowing + 1 In Bdveation Feds Exrtngssoiaton resin epg oft sc eg cherie In the Medieal Field: Analyzing th deubus, In Forestry: Aralyss of probabiliy and intensity of {eet fe nih ne fore ie date Apri is used by many companies lke Amazon in AC Recommender System and by Google for the tto-complte feature rss Wii problems in Pater Recognaion and Machine Leaning canbe of verious types they can be brody classified into three categories. Explain these ‘nope, Sepervned Learaing: The system is presented with ‘ite inputs and thet desed utp pes "RAcher td th goa st leama general ue that ap pus woapae ‘Unsupervised Learning: No labels ae given tothe ‘eaming alert ving ts own fin orate caring: A sytem inert witha Sami envicnmentn wishes peers os fa uch diving vecccrpytgrgene sen ‘mepponeo, The ystems provid fader ‘fevers sod pnhnens ts Kemigue ic enn, perppeprpreerererrerrere ee eee

You might also like