normalise_latent: normalise_latent

View source: R/normalise_latent.R

normalise_latentR Documentation

normalise_latent

Description

Internal function to normalise the latent variable distribution

Usage

normalise_latent(log_p_y_given_x_unnorm_3d)

Arguments

log_p_y_given_x_unnorm_3d

A 3D array with dimensions (n_hidden, n_samples, dim_hidden) containing the un-normalised latent variable distribution.

Value

Returns a list called out which contains two elements:

  1. A 3D array of numerics in range (0, 1), that represent the probability that each observed x variable belongs to n_hidden latent variables of dimension dim_hidden. p_y_given_x_3d has dimensions (n_hidden, n_samples, dim_hidden).

  2. A 2D matrix containing the pointwise estimate of total correlation explained by each latent variable for each sample.


jpkrooney/rcorex documentation built on July 25, 2022, 1:37 a.m.