您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 机器学习-试卷-finals19
CS189Spring2019IntroductiontoMachineLearningFinalExamPleasedonotopentheexambeforeyouareinstructedtodoso.Electronicdevicesareforbiddenonyourperson,includingcellphones,iPods,headphones,andlaptops.Turnyourcellphoneoandleaveallelectronicsatthefrontoftheroom,orriskgettingazeroontheexam.Whenyoustart,thefirstthingyoushoulddoischeckthatyouhaveall12pagesandall6questions.Thesecondthingistopleasewriteyourinitialsatthetoprightofeverypageafterthisone(e.g.,write“JS”ifyouareJonathanShewchuk).Theexamisclosedbook,closednotesexceptyourtwocheatsheets.Youhave3hours.Markyouranswersontheexamitselfinthespaceprovided.Donotattachanyextrasheets.Thetotalnumberofpointsis150.Thereare26multiplechoicequestionsworth3pointseach,and5writtenquestionsworthatotalof72points.Formultipleanswerquestions,fillinthebubblesforALLcorrectchoices:theremaybemorethanonecorrectchoice,butthereisalwaysatleastonecorrectchoice.NOpartialcreditonmultipleanswerquestions:thesetofallcorrectanswersmustbechecked.FirstnameLastnameSIDFirstandlastnameofstudenttoyourleftFirstandlastnameofstudenttoyourright1Q1.[78pts]MultipleAnswerFillinthebubblesforALLcorrectchoices:theremaybemorethanonecorrectchoice,butthereisalwaysatleastonecorrectchoice.NOpartialcredit:thesetofallcorrectanswersmustbechecked.(a)[3pts]Whichofthefollowingalgorithmscanlearnnonlineardecisionboundaries?Thedecisiontreesuseonlyaxis-alignedsplits.Adepth-fivedecisiontreeQuadraticdiscriminantanalysis(QDA)AdaBoostwithdepth-onedecisiontreesPerceptronThesolutionsareobviousotherthanAdaBoostwithdepth-onedecisiontrees,whereyoucanformnon-linearboundariesduetothefinalclassifiernotactuallybeingalinearcombinationofthelinearweaklearners.(b)[3pts]Whichofthefollowingclassifiersarecapableofachieving100%trainingaccuracyonthedatabelow?Thedecisiontreesuseonlyaxis-alignedsplits.LogisticregressionAneuralnetworkwithonehiddenlayerAdaBoostwithdepth-onedecisiontreesAdaBoostwithdepth-twodecisiontreestopleft:Eachweaklearnerwilleitherclassifythepointsfromeachpairindierentclasses,orclassifyeverypointinthesameclass.Sincethemetaclassifierisaweightedsumofalloftheseweakclassifiers,eachwhichhasa50%trainingaccuracy,themetaclassifiercannothave100%accuracy.topright:Aneuralnetworkwithonehiddenlayer(withenoughunits)isauniversalfunctionapproximator.lowerleft:Logisticregressionfindsalineardecisionboundary,whichcannotseparatethedata.lowerright:Adepthtwodecisiontreecanfullyseparatethedata.(c)[3pts]Whichofthefollowingaretrueofsupportvectormachines?IncreasingthehyperparameterCtendstodecreasethetrainingerrorThehard-marginSVMisaspecialcaseofthesoft-marginwiththehyperparameterCsettozeroIncreasingthehyperparameterCtendstodecreasethemarginIncreasingthehyperparameterCtendstodecreasethesensitivitytooutliersTopleft:True,fromthelecturenotes.Bottomleft:False,Hard-marginSVMiswhereCtendstowardsinfinity.Topright:false,perceptronistrainedusinggradientdescentandSVMistrainedusingaquadraticprogram.2Bottomright:True:slackbecomeslessexpensive,soyouallowdatapointstobefartheronthewrongsideofthemarginandmakethemarginbigger.Doingthiswillneverreducethenumberofdatapointsinsidethemargin.(d)[3pts]Letr(x)beadecisionrulethatminimizestheriskforathree-classclassifierwithlabelsy2f0;1;2gandanasymmetriclossfunction.Whatistrueaboutr()?8y2f0;1;2g;9x:r(x)=yIfwedon’thaveaccesstotheunderlyingdatadis-tributionP(X)orP(YjX),wecannotexactlycomputetheriskofr()8x,r(x)isaclassythatmaximizestheposteriorprobabilityP(Y=yjX=x)IfP(X=x)changesbutP(Y=yjX=x)remainsthesameforallx;y,r(X)stillminimizestherisktopleft:itispossiblethatr(X)isthesameforallX.topright:no,becausetheriskisasymmetriclowerleft:bydefinitionofriskweneedtobeabletocomputeexpectationsoverthesetwodistributions.lowerright:Giventhatr(X)hasnoconstraint,itcanpicktheythatminimizesriskforeveryX=xwithouttrade-os.Therefore,ifonlythemarginalschange,thatchoiceisnotaected.(e)[3pts]Whichofthefollowingaretrueabouttwo-classGaussiandiscriminantanalysis?AssumeyouhaveestimatedtheparametersˆC;ˆC,ˆCforclassCandˆD;ˆD,ˆDforclassD.IfˆC=ˆDandˆC=ˆD,thentheLDAandQDAclassifiersareidenticalIfˆC=I(theidentitymatrix)andˆD=5I,thentheLDAandQDAclassifiersareidenticalIfˆC=ˆD,ˆC=1=6,andˆD=5=6,thentheLDAandQDAclassifiersareidenticalIftheLDAandQDAclassifiersareidentical,thentheposteriorprobabilityP(Y=CjX=x)islinearinxTopleft:false,thecovariancematricesmightdier,makingtheQDAdecisionfunctionnonlinear.Bottomleft:false,theQDAdecisionfunctionisnonlinear.Topright:correct.Bottomright:no,theposteriorisalogisticfunction.(f)[3pts]ConsiderannddesignmatrixXwithlabelsy2Rn.Whatistrueoffittingthisdatawithdualridgeregressionwiththepolynomialkernelk(Xi;Xj)=(XTiXj+1)p=(Xi)(Xj)andregularizationparameter0?Ifthepolynomialdegreeishighenough,thepoly-nomialwillfitthedataexactlyThealgorithmcomputes(Xi)and(Xj)inO(dp)timeThealgorithmsolvesannnlinearsystemWhennisverylarge,thisdualalgorithmismorelikelytooverfitthantheprimalalgorithmwithdegree-ppolynomialfeaturesTopleft:seedefinitionofdualridgeregressionLowerleft:bothgivethesamesolution,nomattern!Topright:Thedualmethodproblemofridgeregressi
本文标题:机器学习-试卷-finals19
链接地址:https://www.777doc.com/doc-6863031 .html