资源预览内容
第1页 / 共12页
第2页 / 共12页
第3页 / 共12页
第4页 / 共12页
第5页 / 共12页
第6页 / 共12页
第7页 / 共12页
第8页 / 共12页
第9页 / 共12页
第10页 / 共12页
亲,该文档总共12页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
LinearDiscrimination outline 10 7LogisticDiscrimination10 7 1TwoClasses10 7 2MultipleClasses10 8DiscriminationbyRegression GradientDescent TwoClassesWedonotmodeltheclass conditionaldensities p x Ci butrathertheirratio Twoclassesandassumethattheloglikelihoodratioislinear UsingBayes ruleandinference wehavethesigmoidfunction whereHowwecanlearnand 10 7Logisticdiscrimination Howwecanlearnand Givenasampleoftwoclasses X where 1 ifx and 0ifx Assume given isBernoulli Thesamplelikelihoodis Likelihoodfunctiontomaximize minimizedasItsderivativeisgivenas 10 7 1TwoClasses ItisbesttoinitializeWjwithrandomvaluescloseto0 generallytheyaredrawnuniformlyfromtheinterval 0 01 0 01 10 7 1TwoClasses 计算y值 LetusnowgeneralizetoK 2classes Wetakeoneoftheclasses forexample asthereferenceclassandassumethat Inference Thesoftmaxfunction Totreatallclassesuniformly wecanwriteguaranteesthat 10 7 2MultipleClasses Howwecanlearnand InthiscaseofK 2classes eachsamplepointisamultinomialtrialwithonedraw thatis where Thesamplelikelihoodis Theerrorfunctionisagaincross entropy Define whichis1ifi jand0ifij 10 7 2MultipleClasses Duringtesting wecalculateall k 1 KandchooseifAgainwedonotneedtocontinuetrainingtominimizecrossentropyasmuchaspossible wetrainonlyuntilthecorrectclasshasthehighestweightedsum andthereforewecanstoptrainingearlierbycheckingthenumberofmisclassifications Whendataarenormallydistributed thelogisticdiscriminanthascomparableerrorratetotheparametric normal basedlineardiscriminant McLachlan1992 Logisticdiscriminationcanstillbeusedwhentheclass conditionaldensitiesarenonnormalorwhentheyarenotunimodal aslongasclassesarelinearlyseparable 10 7 2MultipleClasses Inregression theprobabilisticmodelis TwoClassesAssumingalinearmodelandtwoclasses wehaveThenthesamplelikelihoodinregression assumingMaximizingtheloglikelihoodisminimizingthesumofsquareerrors 10 8DiscriminationbyRegression Usinggradient descent wegetMultipleClasses 10 8DiscriminationbyRegression
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号