estimate_parameters_discrete: estimate_parameters_discrete

View source: R/estimate_parameters_discrete.R

estimate_parameters_discreteR Documentation

estimate_parameters_discrete

Description

Internal function to estimate parameters for data with discrete marginal description

Usage

estimate_parameters_discrete(
  x_i,
  p_y_given_x_3d,
  smooth_marginals,
  dim_visible
)

Arguments

x_i

A single variable/column of data

p_y_given_x_3d

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).

smooth_marginals

Boolean (TRUE/FALSE) which indicates whether Bayesian smoothing of marginal estimates should be used as described in Pepke, S., Ver Steeg, G. Comprehensive discovery of subsample gene expression components by information explanation: therapeutic implications in cancer. BMC Med Genomics 10, 12 (2017). https://doi.org/10.1186/s12920-017-0245-6

dim_visible

The dimension of the data provided in data - i.e. the number of discrete levels that exist in the data. Must be positive integer.

Details

Estimates the probability of each dim_visible occurring for each dim_hidden across each n_hidden.

Value

Returns a 3D array of dimensions (dim_visible, n_hidden, dim_hidden) that represent the probability of each dim_visible occurring for each dim_hidden across each n_hidden.


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