estimate_parameters_bernoulli: estimate_parameters_bernoulli

View source: R/estimate_parameters_bernoulli.R

estimate_parameters_bernoulliR Documentation

estimate_parameters_bernoulli

Description

Internal function to estimate parameters for binary data

Usage

estimate_parameters_bernoulli(x_i, p_y_given_x_3d, smooth_marginals)

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

Details

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

Value

Returns a 3D array of dimensions (2, 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.