public class NUTS extends java.lang.Object implements PosteriorSamplingAlgorithm
Constructor and Description |
---|
NUTS() |
Modifier and Type | Method and Description |
---|---|
NetworkSamples |
getPosteriorSamples(BayesianNetwork bayesNet,
java.util.List<? extends Vertex> sampleFromVertices,
int sampleCount)
Sample from the posterior of a Bayesian Network using the No-U-Turn-Sampling algorithm
|
static NUTS |
withDefaultConfig() |
static NUTS |
withDefaultConfig(KeanuRandom random) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosteriorSamples
public static NUTS withDefaultConfig()
public static NUTS withDefaultConfig(KeanuRandom random)
public NetworkSamples getPosteriorSamples(BayesianNetwork bayesNet, java.util.List<? extends Vertex> sampleFromVertices, int sampleCount)
getPosteriorSamples
in interface PosteriorSamplingAlgorithm
bayesNet
- the bayesian network to sample fromsampleFromVertices
- the vertices inside the bayesNet to sample fromsampleCount
- the number of samples to take