slda.predict(documents, topics, model, alpha, eta,
num.iterations = 100, average.iterations = 50, trace = 0L)
slda.predict.docsums(documents, topics, alpha, eta,
num.iterations = 100, average.iterations = 50, trace = 0L)
lda.collapsed.gibbs.sampler
.
slda.em
can be used.
slda.em
can be used.
trace
is greater than zero, diagnostic messages will be
output. Larger values of trace
imply more messages.
slda.predict
, a numeric vector of the same length as
documents
giving the predictions. For slda.predict.docsums
, a
$K \times N$ matrix of document assignment counts.
model
to yield numeric predictions associated
with each document.
lda.collapsed.gibbs.sampler
for a description of the
format of the input data, as well as more details on the model.
See predictive.distribution
if you want to make
predictions about the contents of the documents instead of the
response variables.
## The sLDA demo shows an example usage of this function.
## Not run: demo(slda)
Run the code above in your browser using DataLab