nubbi.collapsed.gibbs.sampler(contexts, pair.contexts, pairs, K.individual, K.pair, vocab, num.iterations, alpha, eta, xi)
lda.collapsed.gibbs.sampler
for details).pair.contexts
refer to. This parameter should be an integer matrix with two columns
and the same number of rows as pair.contexts
. The two
elements in each row of pair
lda.collapsed.gibbs.sampler
with the following additional components:length(pair.contexts)
whose
elements source_assignments[[i]]
are of the same length as
pair.contexts[[i]]
where each entry is either 0 if the
sampler assigned the word to the first entity, 1 if the sampler
assigned the word to the second entity, or 2 if the sampler assigned
the word to the relationship between the two.length(pair.contexts)
rows where each row indicates how many
words were assigned to the first entity of the pair, the second
entity of the pair, and the relationship between the two,
respectively.lda.collapsed.gibbs.sampler
, except that it is a list whose
first length(contexts)
correspond to the columns of the entry
in lda.collapsed.gibbs.sampler
for the individual contexts,
and the remaining length(pair.contexts)
entries correspond to
the columns for the pair contexts.lda.collapsed.gibbs.sampler
,
except that it contains the concatenation of the K.individual
topics and the K.pair
topics.The collapsed Gibbs sampler used in this model is different than the variational inference method proposed in the paper and is highly experimental.
lda.collapsed.gibbs.sampler
for a description of the
input formats and similar models.
rtm.collapsed.gibbs.sampler
is a different kind of
model for document networks.