effective_dimension: Effective dimension.

Description Usage Arguments Details Value

Description

Finds the effective dimension of a latent factor matrix by first computing L2 norms of each column.

Usage

1
effective_dimension(x, thresh = 0.05)

Arguments

x

a matrix whose columns represent coordinates in a latent space

thresh

a threshold close to zero

Details

Columns with L2 norm greater than the maximum norm times 'thresh' are nonzero. Columns with L2 norm less than the cutoff (above) are 'zero'.

Value

a count of the number of nonzero columns


willtownes/vamf documentation built on May 8, 2019, 9:31 a.m.