Description Usage Arguments Value Author(s) Examples
This function estimates the topic-document matrix W from the word-topic matrix A and the word-document X through quadratic programming.
1 | W_from_AD(A, X)
|
A |
The p-by-K word-topic matrix. |
X |
The p-by-n word-document matrix. |
The estimated K-by-n topic-document matrix W_hat.
Minzhe Wang
1 2 3 4 | data("AP")
K <- 3
tscore_obj <- topic_score(K, AP)
W_hat <- W_from_AD(tscore_obj$A_hat, AP)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.