哈工大深圳ML试题答案

上传人:简****9 文档编号:52018773 上传时间:2022-02-07 格式:DOCX 页数:4 大小:60.40KB
返回 下载 相关 举报
哈工大深圳ML试题答案_第1页
第1页 / 共4页
哈工大深圳ML试题答案_第2页
第2页 / 共4页
哈工大深圳ML试题答案_第3页
第3页 / 共4页
点击查看更多>>
资源描述
1 Givethedefinitionsoryourcomprehensionsofthefollowingterms.(12)TheinductivelearninghypothesisP17OverfittingP49ConsistentlearnerP1482 Givebriefanswerstothefollowingquestions.(15)IfthesizeofaversionspaceisIVS*I.Ingeneralwhatisthesmallestnumberofqueriesmayberequiredbyaconceptlearnerusingoptimalquerystrategytoperfectlylearnthetargetconcept?P27IngenaraLdecisiontreesrepresentadisjunctionofconjunctionsofconstrainsontheattributevaluesofinstanse.thenwhatexpressiondoesthefollowingdecisiontreecorrespondsto?YesNoYesNo3 Givetheexplainationtoinductivebias,andlistinductivebiasofCANDIDATE-ELIMINATIONalgorithm,decisiontreelearning(ID3),BACKPROPAGATIONalgorithm。O)4 Howtosolveoverfittingindecisiontreeandneuralnetwork?。)Solution:Decisiontree: 及早停止树增加(stopgrowingearlier) 后修剪法(posl-pruning)NeuralNetwork权值衰减(weigh】decay)验证数据集(validalionset)A5 ProvethattheLMSweightupdatemleq吗+(匕w加(/O-Vg)*perfomisagradientdescenttominimizethesquarederror.Inparticular,definethesquarederrorEasinthetext.NowAcalculatethederivativeofEwithrespecttotheweightassumingthatV(b)isalinearfunctionasdefinedinthetext.GradientdescentisachievedbyupdatingeachweightinproportiondEto.Therefore,youmustshowthattheLMStrainingrulealtersweightsinthisproportion物foreachtrainingexampleitencounters.(E=工(%他-)2)(bJJaw&rainintxatnpleSolution:AAsVtrain(b)hk(VxeX)(hk(x)=1)-(A;(x)=1)then%=(%1%)人仇/%)(10,)Thehypothesisisfalse.OnecounterexampleisAXORBwhileifA!=B,trainingexamplesareallpositive,whileifA=B.trainingexamplesareallnegative,then,usingID3toextendDI,thenewtreeD2willbeequivalenttoDI,D2isequaltoDI.7 Designatwo-inputperceptronthatimplementsthebooleanfunctionAa-iB.Designatwo-layernetworkofperceptronsthatimplementsAXOR8.(10)8 Supposethatahypothesisspacecontainingthreehypotheses,九喜.由,andtheposteriorprobabilitiesofthesetypothesesgiventhetrainingdataare,andrespectively.AndifanewinstanceXisencountered,whichisclassifiedpositiveby%,butnegativeby%andh5.thengivetheresultanddetailclassificationcourseofBayesoptimalclassifier110)P1259 SupposeSisacollectionoftraining-exampledaysdescribedbyattributesincludingHumidity,whichcanhavethevaluesHighorNormal.AssumeSisacollectioncontaining10examples,7+,3-LOfthese10examples,suppose3ofthepositiveand2ofthenegativeexampleshaveHumidity=High,andtheremainderhaveHumidity=Normal.Pleasecalculatetheinformationgainduetosortingtheoriginal10examplesbytheattributeHumidity.(log2l=0,log22=Llog23=,log24=2,Iogi5=,Iog26=,logz7=,log28=3,logi9=,log210=,)(5)Solution:7733ia)HerewedenoteS=7+3-bthenEnlropyi7+.3-l)=-log2-log2=;(b)Gain(S,Humidity)=Entropy(S)-ZyyEntropy(Sv)Gain(S.a2)vvaucs(IIuniidityi)|,/Values(Humidity)=High.NormalS岫=seSIHiuMity(s)=HighEntropy(Sw,)=-1log,|-1log21=0.972,际而|=5=4*Entropy(5jVfWM/)=-log2-1log21=0,72,屈尔/=5ThusGain(S,Humidity)=(.x0.972+-*0.72)=10Finishthefollowingalgorithm.(IO)(1) GRADIENT-DESCENT(trainingexamples,rj)Eachtrainingexampleisapairoftheform卜),wherexisthevectorofinputvalues,andtisthetargetoutputvalue.Jisthelearningrate. Initializeeachqtosomesmallrandomvalue Untiltheterminationconditionismet,Do Initializeeach弓tozero. Foreach卜,intraining_examples/Do InputtheinstanceXtotheunitandcomputetheoutputo Foreachlinearunitweight,Do Foreachlinearunitweight,Do(2)FIND-SAlgorithm InitializehtothemostspecifichypothesisinH ForeachpositivetraininginstancexForeachattributeconstrainta(inhIfThendonothingElsereplacea,inhbythenextmoregeneralconstraintthatissatisfiedbyxOutputhypothesish
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业管理 > 市场营销


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!