public class DoubleProxyVertex extends DoubleVertex implements Differentiable, ProxyVertex<DoubleVertex>, NonProbabilistic<DoubleTensor>
Constructor and Description |
---|
DoubleProxyVertex(long[] shape,
java.lang.String label) |
DoubleProxyVertex(long[] shape,
java.lang.String labelString,
DoubleVertex parent) |
DoubleProxyVertex(long[] shape,
VertexLabel label) |
DoubleProxyVertex(VertexLabel label)
This vertex acts as a "Proxy" to allow a BayesNet to be built up before parents are explicitly known (ie for
model in model scenarios) but allows linking at a later point in time.
|
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
calculate() |
PartialDerivative |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput) |
java.lang.String |
getLabelParameter() |
DoubleVertex |
getParent() |
boolean |
hasParent() |
java.util.Map<Vertex,PartialDerivative> |
reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf) |
<V extends Vertex<DoubleTensor>> |
setLabel(VertexLabel label)
Set a label for this vertex.
|
void |
setParent(DoubleVertex newParent) |
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, unaryMinus
addChild, 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, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
withRespectToSelf
contradictsObservation
getObservedValue, isObserved, observe, unobserve
public DoubleProxyVertex(VertexLabel label)
label
- The label for this Vertex (all Proxy Vertices must be labelled)public DoubleProxyVertex(long[] shape, VertexLabel label)
public DoubleProxyVertex(long[] shape, java.lang.String labelString, DoubleVertex parent)
public DoubleProxyVertex(long[] shape, java.lang.String label)
public <V extends Vertex<DoubleTensor>> V setLabel(VertexLabel label)
Vertex
setLabel
in class Vertex<DoubleTensor>
V
- vertex typelabel
- The label to apply to this vertex. Uniqueness is only enforced on instantiation of a Bayes Netpublic DoubleTensor calculate()
calculate
in interface NonProbabilistic<DoubleTensor>
public void setParent(DoubleVertex newParent)
setParent
in interface ProxyVertex<DoubleVertex>
public DoubleVertex getParent()
public boolean hasParent()
hasParent
in interface ProxyVertex<DoubleVertex>
public PartialDerivative forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivative> derivativeOfParentsWithRespectToInput)
forwardModeAutoDifferentiation
in interface Differentiable
public java.util.Map<Vertex,PartialDerivative> reverseModeAutoDifferentiation(PartialDerivative derivativeOfOutputWithRespectToSelf)
reverseModeAutoDifferentiation
in interface Differentiable
public java.lang.String getLabelParameter()