public class DoubleIfVertex extends DoubleVertex implements Differentiable, NonProbabilistic<DoubleTensor>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ELSE_NAME |
protected static java.lang.String |
PREDICATE_NAME |
protected static java.lang.String |
THEN_NAME |
| Constructor and Description |
|---|
DoubleIfVertex(BooleanVertex predicate,
DoubleVertex thn,
DoubleVertex els) |
| Modifier and Type | Method and Description |
|---|---|
DoubleTensor |
calculate() |
PartialDerivative |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput) |
DoubleVertex |
getEls() |
BooleanVertex |
getPredicate() |
DoubleVertex |
getThn() |
java.util.Map<Vertex,PartialDerivative> |
reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, permute, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, saveValue, setAndCascade, setAndCascade, setValue, setValue, setWithMask, setWithMask, sigmoid, sin, slice, sum, sum, take, tan, times, times, toGreaterThanMask, toGreaterThanMask, toGreaterThanOrEqualToMask, toGreaterThanOrEqualToMask, toInteger, toLessThanMask, toLessThanMask, toLessThanOrEqualToMask, toLessThanOrEqualToMask, transpose, unaryMinusaddChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitwithRespectToSelfcontradictsObservationgetObservedValue, isObserved, observe, unobserveprotected static final java.lang.String PREDICATE_NAME
protected static final java.lang.String THEN_NAME
protected static final java.lang.String ELSE_NAME
public DoubleIfVertex(BooleanVertex predicate, DoubleVertex thn, DoubleVertex els)
public BooleanVertex getPredicate()
public DoubleVertex getThn()
public DoubleVertex getEls()
public PartialDerivative forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput)
forwardModeAutoDifferentiation in interface Differentiablepublic DoubleTensor calculate()
calculate in interface NonProbabilistic<DoubleTensor>public java.util.Map<Vertex,PartialDerivative> reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf)
reverseModeAutoDifferentiation in interface Differentiable