There are a bunch of ways users could format
alpha but the C++ Gibbs
fit_lda_c only takes it one way. This function does the
appropriate formatting. It also returns errors if the user input a malformatted
the prior for topics over documents. Can be a numeric scalar or numeric vector.
the number of topics.
Returns a list with two elements:
alpha is the post-formatted version of
alpha in the form of a
k-length numeric vector.
alpha_class is a character
denoting whether or not the user-supplied
alpha was a "scalar" or
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.