Description Usage Arguments Value Examples
View source: R/init_functions.R
Used in the mmpca_clust
() function to initialize
beta. It can be either "random" or "lda". Please not that the
mmpca_clust
() function also allow for a user given beta
matrix. In this case, this function is not used.
1 | initializeBeta(dtm, init.beta, K, verbose = 0, control_lda_init = NULL)
|
dtm |
An object of class |
init.beta |
A string specifying the method, either
|
K |
The number of topics (dimension of the latent space). |
verbose |
The verbosity level. Only prints a message at function activation. |
control_lda_init |
The control for |
A KxV matrix with each row summing to 1.
1 2 3 | simu = simulate_BBC(N = 100, L = 100)
K = 4
beta = initializeBeta(simu$dtm.full, 'lda', K, verbose = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.