public class ParetoVertex extends DoubleVertex implements ProbabilisticDouble
Constructor and Description |
---|
ParetoVertex(double location,
double scale) |
ParetoVertex(double location,
DoubleVertex scale) |
ParetoVertex(DoubleVertex location,
double scale) |
ParetoVertex(DoubleVertex location,
DoubleVertex scale) |
ParetoVertex(long[] tensorShape,
double location,
double scale) |
ParetoVertex(long[] tensorShape,
double location,
DoubleVertex scale) |
ParetoVertex(long[] tensorShape,
DoubleVertex location,
double scale) |
ParetoVertex(long[] tensorShape,
DoubleVertex location,
DoubleVertex scale)
Provides a Vertex implementing the Pareto Distribution.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Vertex,DoubleTensor> |
dLogProb(DoubleTensor value,
java.util.Set<? extends Vertex> withRespectTo)
The partial derivatives of the natural log prob.
|
PartialDerivatives |
forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivatives> derivativeOfParentsWithRespectToInputs) |
DoubleVertex |
getLocation() |
DoubleVertex |
getScale() |
double |
logProb(DoubleTensor value)
This is the natural log of the probability at the supplied value.
|
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
dLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, dLogPdf, logPdf, logPdf, logPdf
dLogProb, dLogProbAtValue, dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValue, setValue
getObservedValue, isObserved, observableTypeFor, observe, unobserve
getDerivativeWrtLatents
public ParetoVertex(long[] tensorShape, DoubleVertex location, DoubleVertex scale)
If all provided parameters are scalar then the proposed shape determines the shape
tensorShape
- the desired shape of the tensor in this vertexlocation
- the location value(s) of the Pareto. Must either be the same shape as tensorShape or a scalarscale
- the scale value(s) of the Pareto. Must either be the same shape as tensorShape or a scalarpublic ParetoVertex(DoubleVertex location, DoubleVertex scale)
public ParetoVertex(double location, DoubleVertex scale)
public ParetoVertex(DoubleVertex location, double scale)
public ParetoVertex(double location, double scale)
public ParetoVertex(long[] tensorShape, double location, DoubleVertex scale)
public ParetoVertex(long[] tensorShape, DoubleVertex location, double scale)
public ParetoVertex(long[] tensorShape, double location, double scale)
public DoubleVertex getScale()
public DoubleVertex getLocation()
public double logProb(DoubleTensor value)
Probabilistic
logProb
in interface Probabilistic<DoubleTensor>
value
- The supplied value.public java.util.Map<Vertex,DoubleTensor> dLogProb(DoubleTensor value, java.util.Set<? extends Vertex> withRespectTo)
Probabilistic
dLogProb
in interface Probabilistic<DoubleTensor>
value
- at a given valuewithRespectTo
- list of parents to differentiate with respect topublic DoubleTensor sample(KeanuRandom random)
sample
in class Vertex<DoubleTensor>
random
- source of randomnesspublic PartialDerivatives forwardModeAutoDifferentiation(java.util.Map<Vertex,PartialDerivatives> derivativeOfParentsWithRespectToInputs)
forwardModeAutoDifferentiation
in interface Differentiable
forwardModeAutoDifferentiation
in class DoubleVertex