Description Usage Arguments Details Value Examples
View source: R/init_functions.R
Perform a DocumentTermMatrix
clustering via default
routines or allow for user specified function
1 | initialize_Y(dtm, Q, K, init = "random")
|
dtm |
An object of class |
Q |
The number of cluster |
K |
The dimension of the latent space. It is mandatory, for compatibility reasons but not always used (e.g. random do not use it). |
init |
Either:
|
For more details see benchmarks-functions
A vector of size equal to the number of row of dtm
, containing
a Q-clustering
1 2 3 4 | simu = simulate_BBC(N = 100, L = 100)
Q = 6
K = 4
Y = initialize_Y(simu$dtm.full, Q, K, init = 'kmeans_lda')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.