public class BayesianNetwork
extends java.lang.Object
Constructor and Description |
---|
BayesianNetwork(java.util.Collection<? extends Vertex> vertices) |
BayesianNetwork(java.util.Set<? extends Vertex> vertices) |
Modifier and Type | Method and Description |
---|---|
void |
cascadeObservations() |
java.util.List<Vertex<DoubleTensor>> |
getContinuousLatentVertices() |
java.util.List<Vertex> |
getDiscreteLatentVertices() |
java.util.List<Vertex> |
getLatentAndObservedVertices() |
java.util.List<Vertex> |
getLatentVertices() |
double |
getLogOfMasterP() |
java.util.List<Vertex> |
getObservedVertices() |
boolean |
isInImpossibleState() |
void |
probeForNonZeroProbability(int attempts) |
void |
probeForNonZeroProbability(int attempts,
KeanuRandom random)
Attempt to find a non-zero master probability
by naively sampling vertices in order of data dependency
|
static void |
setFromSampleAndCascade(java.util.List<? extends Vertex> vertices) |
static void |
setFromSampleAndCascade(java.util.List<? extends Vertex> vertices,
KeanuRandom random) |
public BayesianNetwork(java.util.Set<? extends Vertex> vertices)
public BayesianNetwork(java.util.Collection<? extends Vertex> vertices)
public java.util.List<Vertex> getLatentAndObservedVertices()
public java.util.List<Vertex> getLatentVertices()
public java.util.List<Vertex> getObservedVertices()
public double getLogOfMasterP()
public void cascadeObservations()
public void probeForNonZeroProbability(int attempts)
public void probeForNonZeroProbability(int attempts, KeanuRandom random)
attempts
- sampling attempts to get non-zero probabilityrandom
- random source for samplingpublic boolean isInImpossibleState()
public static void setFromSampleAndCascade(java.util.List<? extends Vertex> vertices)
public static void setFromSampleAndCascade(java.util.List<? extends Vertex> vertices, KeanuRandom random)
public java.util.List<Vertex<DoubleTensor>> getContinuousLatentVertices()
public java.util.List<Vertex> getDiscreteLatentVertices()