public class PowerVertex extends DoubleBinaryOpVertex
left, right
Constructor and Description |
---|
PowerVertex(DoubleVertex left,
DoubleVertex right)
Raises a vertex to the power of another
|
Modifier and Type | Method and Description |
---|---|
protected DualNumber |
dualOp(DualNumber l,
DualNumber r) |
DoubleVertex |
getBase() |
DoubleVertex |
getExponent() |
protected DoubleTensor |
op(DoubleTensor l,
DoubleTensor r) |
java.util.Map<Vertex,PartialDerivatives> |
reverseModeAutoDifferentiation(PartialDerivatives derivativeOfOutputsWithRespectToSelf) |
calculate, calculateDualNumber, getLeft, getRight, sample
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, log, matrixInverse, matrixMultiply, minus, minus, multiply, multiply, notEqualTo, observe, observe, plus, plus, pow, pow, reshape, round, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, slice, 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, labeledAs, lazyEval, observe, observeOwnValue, sample, setAndCascade, setLabel, setParents, setParents, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observableTypeFor, observe, unobserve
getDualNumber
public PowerVertex(DoubleVertex left, DoubleVertex right)
left
- the base vertexright
- the exponent vertexprotected DoubleTensor op(DoubleTensor l, DoubleTensor r)
op
in class DoubleBinaryOpVertex
protected DualNumber dualOp(DualNumber l, DualNumber r)
dualOp
in class DoubleBinaryOpVertex
public java.util.Map<Vertex,PartialDerivatives> reverseModeAutoDifferentiation(PartialDerivatives derivativeOfOutputsWithRespectToSelf)
reverseModeAutoDifferentiation
in interface Differentiable
reverseModeAutoDifferentiation
in class DoubleVertex
public DoubleVertex getBase()
public DoubleVertex getExponent()