Simulate test data for bernoulli PCA
1 | generate_bern_data(k = 4, n = 100, d = 10, p = 0.5, eps = 0.05)
|
k |
The number of latent binary classes. |
n |
The number of samples to generate. |
d |
The dimension of the samples. |
p |
The probability of a 1 in each coordinate of each latent class. |
eps |
The probability of flipping the sign in the observed data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.