| product_weights | R Documentation |
An alignment based on product weights sets the weight between topics k and k'
according to \gamma_{k}^T\gamma_{k}^\prime, where \gamma_{k} \in
\mathbb{R}^n_{+} provides the mixed membership assigned to topic k
across the n samples (and similarly for topic k^\prime). This
function computes these weights given a list of two n \times K gamma
matrices.
product_weights(gammas, ...)
gammas |
(required) A list of length two, containing the mixed
membership matrices (a |
... |
(optional) Other keyword arguments. These are unused by the
|
products A data.frame giving the product similarity of each
pair of topics across the two input matrices.
align_graph
g1 <- matrix(runif(20 * 2), 20, 2)
g2 <- matrix(runif(20 * 4), 20, 4)
product_weights(list(g1, g2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.