A Gibbs sampler is run in the Boltzmann machine model to sample from the learnt
distribution. This can also be used for sampling from a
conditional distribution
(see arguments conditionIndex
and conditionValue
below.)
1 2 3 4 5 6 7 8 9 | ds.bm.samples(
datasources,
bm,
nsamples,
burnin = NULL,
conditionIndex = NULL,
conditionValue = NULL,
samplelast = NULL
)
|
datasources |
A list of Opal object(s) as a handle to the server-side session |
bm |
The name of the model to sample from on the server-side |
nsamples |
The number of samples to generate |
burnin |
The number of Gibbs sampling steps, defaults to 50. |
conditionIndex |
A vector containing indices of variables that are to be conditioned on |
conditionValue |
A vector containing the values for the variables that are to be conditioned on.
(must be of same length as |
samplelast |
boolean to indicate whether to sample in the last step ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.