dt_smooth_normalize | R Documentation |
This package assumes that doc_topics(x)
is the "raw" sampled weights
of topics in documents. To represent the estimated probability of observing a
topic in a particular document, these values should be smoothed and
normalized. This function yields a function which should in turn be
applied to doc_topics(x)
. The idea is to minimize the possibility of
confusion over whether you are operating on smoothed weights or not.
dt_smooth_normalize(m) dt_smooth(m) dt_normalize(m)
m |
|
a function which operates on document-topic matrix. Smoothing means adding alpha_k to document weights for topic k, normalizing means ensuring each document has total weight 1.
doc_topics
, mallet.doc.topics
## Not run: dt_smooth_normalize(x)(doc_topics(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.