product_weights: Product Weights between a Model Pair

product_weightsR Documentation

Product Weights between a Model Pair

Description

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.

Usage

product_weights(gammas, ...)

Arguments

gammas

(required) A list of length two, containing the mixed membership matrices (a matrix of dimension n-samples by k-topics) to compare. The number of columns may be different, but the number of samples must be equal.

...

(optional) Other keyword arguments. These are unused by the product_weights alignment strategy, but is included for consistency across weight functions.

Value

products A data.frame giving the product similarity of each pair of topics across the two input matrices.

See Also

align_graph

Examples

g1 <- matrix(runif(20 * 2), 20, 2)
g2 <- matrix(runif(20 * 4), 20, 4)
product_weights(list(g1, g2))


lasy/alto documentation built on June 23, 2024, 6:45 a.m.