From: Hamid R. H. <ha....@gm...> - 2012-07-03 17:58:10
|
Thanks a lot. On Tue, Jul 3, 2012 at 1:24 PM, Sunita Sarawagi <su...@ii...> wrote: > Please follow the definition of Mi_YY.zMult. This function has been > over-ridden so that it actually does the right thing for matrix entries > containing log of the actual values. > > > On 07/03/2012 09:31 PM, Hamid Reza Hassanzadeh wrote: > > Hello, > I have hard times understanding the following lines of codes seen in both > SegmentTrainer and NestedTrainer which compute the Betas in Log space, I > would appreciate it if you can help me on that, > > initMDone = > computeLogMi(dataSeq,i,i+ell,featureGenNested,lambda,Mi_YY,Ri_Y,reuseM,initMDone); > tmp_Y.assign(Ri_Y); > tmp_Y.assign(beta_Y[i+ell], sumFunc); > Mi_YY.zMult(tmp_Y, beta_Y[i],1,1,false); > > OK, in general to compute beta_Y[i] we should do this, > computeMi(featureGenerator,lambda,dataSeq,i,Mi_YY,Ri_Y); > tmp_Y.assign(beta_Y[i]); > tmp_Y.assign(Ri_Y,multFunc); > Mi_YY.zMult(tmp_Y, beta_Y[i-1]); > > Which makes sense to me, but in Log space how can you multiply Mi_YY to > tmp_Y and add the result to beta_Y? They are in log space. > > Regards > > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > Crf-users mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/crf-users > > |