public class UniformIntVertex extends IntegerVertex implements ProbabilisticInteger
Constructor and Description |
---|
UniformIntVertex(int[] shape,
IntegerTensor min,
IntegerTensor max) |
UniformIntVertex(int[] shape,
IntegerVertex min,
int max) |
UniformIntVertex(int[] shape,
IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(int[] shape,
int min,
int max) |
UniformIntVertex(int[] shape,
int min,
IntegerVertex max) |
UniformIntVertex(IntegerVertex min,
int max) |
UniformIntVertex(IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(int min,
int max) |
UniformIntVertex(int min,
IntegerVertex max) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<Vertex,DoubleTensor> |
dLogProb(IntegerTensor value,
java.util.Set<? extends Vertex> withRespectTo)
The partial derivatives of the natural log prob.
|
Vertex<IntegerTensor> |
getMax() |
Vertex<IntegerTensor> |
getMin() |
double |
logProb(IntegerTensor value)
This is the natural log of the probability at the supplied value.
|
IntegerTensor |
sample(KeanuRandom random) |
abs, concat, div, div, divideBy, divideBy, divideBy, equalTo, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, minus, minus, minus, multiply, multiply, multiply, notEqualTo, observe, observe, plus, plus, plus, pow, pow, reshape, setAndCascade, setAndCascade, setValue, setValue, slice, sum, take, 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
dLogPmf, dLogPmf, dLogPmf, logPmf, logPmf, logPmf
dLogProb, dLogProbAtValue, dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValue, setValue
getObservedValue, isObserved, observableTypeFor, observe, unobserve
public UniformIntVertex(int[] shape, IntegerVertex min, IntegerVertex max)
shape
- tensor shape of valuemin
- The inclusive lower bound.max
- The exclusive upper bound.public UniformIntVertex(int[] shape, int min, int max)
public UniformIntVertex(int[] shape, IntegerTensor min, IntegerTensor max)
public UniformIntVertex(int[] shape, IntegerVertex min, int max)
public UniformIntVertex(int[] shape, int min, IntegerVertex max)
public UniformIntVertex(IntegerVertex min, IntegerVertex max)
public UniformIntVertex(IntegerVertex min, int max)
public UniformIntVertex(int min, IntegerVertex max)
public UniformIntVertex(int min, int max)
public Vertex<IntegerTensor> getMin()
public Vertex<IntegerTensor> getMax()
public double logProb(IntegerTensor value)
Probabilistic
logProb
in interface Probabilistic<IntegerTensor>
value
- The supplied value.public java.util.Map<Vertex,DoubleTensor> dLogProb(IntegerTensor value, java.util.Set<? extends Vertex> withRespectTo)
Probabilistic
dLogProb
in interface Probabilistic<IntegerTensor>
value
- at a given valuewithRespectTo
- list of parents to differentiate with respect topublic IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomness