build_graph {topicmodels} | R Documentation |
The lasso is used to determine which edges are present in a topic graph.
build_graph(x, lambda, and = TRUE)
x |
Object of class "CTM" . |
lambda |
Numeric in [0,1] indicates the relative bound on the L1-norm of the parameters. |
and |
Logical; if TRUE the graph is computed by taking the
intersection of the neighbors, otherwise the union is determined. |
Returns an adjacency matrix for the topics versus topics graph.
David M. Blei, modified by Bettina Gruen
Blei D.M., Lafferty J.D. (2007). A Correlated Topic Model of Science. The Annals of Applied Statistics, 1(1), 17-35.