Further let z (d,w) be the topic ID that was most assigned to the word w with respect to the samples in samples (d,w) .
z (d,w) is defined to be the sampled mode in samples (d,w) in case of multiple modes a random mode is chosen, which never happened in our experiments.