powered by
This function estimates the topic-document matrix W from the word-topic matrix A and the word-document X through quadratic programming.
W_from_AD(A, X)
The p-by-K word-topic matrix.
The p-by-n word-document matrix.
The estimated K-by-n topic-document matrix W_hat.
# NOT RUN { data("AP") K <- 3 tscore_obj <- topic_score(K, AP) W_hat <- W_from_AD(tscore_obj$A_hat, AP) # }
Run the code above in your browser using DataLab