Closed tanglizhe1105 closed 8 years ago
The conditions are just to ensure we only compute likelihood ONCE in one iteration.
Thank you very much Feiga Sorry my english is not well. I mean the slice is the basic unit of corpus in trainning. Each slice would print loglikelihood logs when trained. When sampling slice 0 in one iteration, will it compute entire documents' doc-likelihood in block? Here we assume there is 1 block in each worker.
Thanks, Lizhe
Hi, what is the relation between block and slice? When computing the doc loglikelihood, we just concern slice == 0 in each worker. Is this means we only computing the doc in slice 0, ignore the other slice. Shall we just compute partly doc in this data block?
When computing word loglikelihood, we set block == 0. Is this means we computing all the word in this block, but ignore the other blocks. And When computing normlized loglikelihood, we use TrainerId() == 0 && block == 0 condition. Here also ingnore the other block.
In workers, all slices in every block may be executed loglikelihood under upper condition setting, and print computing loglikelihood.
So, How should me collect the corpus' doc loglikelihood, work loglikelihood and total loglikelihood?