public class DoubleCPTVertex extends DoubleVertex implements Differentiable, NonProbabilistic<DoubleTensor>
Constructor and Description |
---|
DoubleCPTVertex(java.util.List<Vertex<? extends Tensor<java.lang.Boolean>>> inputs,
java.util.Map<CPTCondition,DoubleVertex> conditions,
DoubleVertex defaultResult) |
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
calculate() |
PartialDerivatives |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivatives> derivativeOfParentsWithRespectToInputs) |
DoubleTensor |
sample(KeanuRandom random) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, reverseModeAutoDifferentiation, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, sum, sum, take, tan, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getIndentation, getLabel, getObservedValue, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, removeLabel, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDerivativeWrtLatents, reverseModeAutoDifferentiation
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public DoubleCPTVertex(java.util.List<Vertex<? extends Tensor<java.lang.Boolean>>> inputs, java.util.Map<CPTCondition,DoubleVertex> conditions, DoubleVertex defaultResult)
public DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomnesspublic DoubleTensor calculate()
calculate
in interface NonProbabilistic<DoubleTensor>
public PartialDerivatives forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivatives> derivativeOfParentsWithRespectToInputs)
forwardModeAutoDifferentiation
in interface Differentiable
forwardModeAutoDifferentiation
in class DoubleVertex