public abstract class DoubleUnaryOpVertex extends NonProbabilisticDouble
Modifier and Type | Field and Description |
---|---|
protected DoubleVertex |
inputVertex |
ID_GENERATOR
Constructor and Description |
---|
DoubleUnaryOpVertex(int[] shape,
DoubleVertex inputVertex) |
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
getDerivedValue() |
protected abstract DoubleTensor |
op(DoubleTensor a) |
DoubleTensor |
sample(KeanuRandom random) |
dLogPdf, isProbabilistic, logPdf, observe, updateValue
abs, acos, asin, atan, atan2, calculateDualNumber, ceil, cos, div, div, divideBy, divideBy, dLogPdf, dLogPdf, exp, floor, getDualNumber, lambda, log, logPdf, logPdf, minus, minus, multiply, multiply, observe, observe, plus, plus, pow, pow, setAndCascade, setAndCascade, setAndCascade, setAndCascade, setValue, setValue, sigmoid, sin, tan, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, exploreSetting, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observeOwnValue, sampleUsingDefaultRandom, setAndCascade, setAndCascade, setParents, setParents, setValue, unobserve
protected final DoubleVertex inputVertex
public DoubleUnaryOpVertex(int[] shape, DoubleVertex inputVertex)
public DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomnesspublic DoubleTensor getDerivedValue()
getDerivedValue
in class NonProbabilisticDouble
protected abstract DoubleTensor op(DoubleTensor a)