public class SelectVertex<T> extends Probabilistic<T>
ID_GENERATOR
Constructor and Description |
---|
SelectVertex(java.util.Map<T,DoubleVertex> selectableValues) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Long,DoubleTensor> |
dLogProb(T value)
The partial derivatives of the natural log prob.
|
java.util.Map<T,DoubleVertex> |
getSelectableValues() |
double |
logProb(T value)
This is the natural log of the probability at the supplied value.
|
static <T> SelectVertex<T> |
of(java.util.Map<T,java.lang.Double> selectableValues) |
T |
sample(KeanuRandom random) |
isProbabilistic, updateValue
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public SelectVertex(java.util.Map<T,DoubleVertex> selectableValues)
public static <T> SelectVertex<T> of(java.util.Map<T,java.lang.Double> selectableValues)
public java.util.Map<T,DoubleVertex> getSelectableValues()
public T sample(KeanuRandom random)
public double logProb(T value)
Vertex