View source: R/marginal_p_bernoulli.R
marginal_p_bernoulli | R Documentation |
Internal function to estimate the marginals for binary (bernoulli) data.
marginal_p_bernoulli(x_i, thetai)
x_i |
A single variable/column of data |
thetai |
Estimated parameters corresponding to the single variable/column of data provided to x_i |
Estimate the marginals for a single column of data x_i
for each hidden variable with dimension dim_hidden. For discrete data this can be calculated directly from the data.
A three dimensional array of marginals with dimensions: (n_hidden, n_samples, dim_hidden)
- i.e. marginals for each data point in x_i given current n_hidden x dim_hidden parameter estimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.