public class UniformIntVertex extends IntegerVertex implements ProbabilisticInteger, SamplableWithManyScalars<IntegerTensor>
| Constructor and Description |
|---|
UniformIntVertex(IntegerVertex min,
int max) |
UniformIntVertex(IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(int min,
int max) |
UniformIntVertex(int min,
IntegerVertex max) |
UniformIntVertex(long[] shape,
IntegerTensor min,
IntegerTensor max) |
UniformIntVertex(long[] shape,
IntegerVertex min,
int max) |
UniformIntVertex(long[] shape,
IntegerVertex min,
IntegerVertex max) |
UniformIntVertex(long[] shape,
int min,
int max) |
UniformIntVertex(long[] shape,
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.
|
IntegerVertex |
getMax() |
IntegerVertex |
getMin() |
double |
logProb(IntegerTensor value)
This is the natural log of the probability at the supplied value.
|
IntegerTensor |
sampleWithShape(long[] shape,
KeanuRandom random) |
abs, concat, div, div, divideBy, divideBy, divideBy, equalTo, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, max, min, minus, minus, minus, multiply, multiply, multiply, notEqualTo, observe, observe, plus, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, sum, take, times, times, toDouble, unaryMinusaddChild, 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, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitdLogPmf, dLogPmf, dLogPmf, logPmf, logPmf, logPmfdLogProb, dLogProbAtValue, dLogProbAtValue, getValue, keepOnlyProbabilisticVertices, logProbAtValuegetObservedValue, isObserved, observe, unobservesample, sampleManyScalars, sampleManyScalarssampleWithShapepublic UniformIntVertex(long[] shape,
IntegerVertex min,
IntegerVertex max)
shape - tensor shape of valuemin - The inclusive lower bound.max - The exclusive upper bound.public UniformIntVertex(long[] shape,
int min,
int max)
public UniformIntVertex(long[] shape,
IntegerTensor min,
IntegerTensor max)
public UniformIntVertex(long[] shape,
IntegerVertex min,
int max)
public UniformIntVertex(long[] 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 IntegerVertex getMin()
public IntegerVertex getMax()
public double logProb(IntegerTensor value)
ProbabilisticlogProb in interface Probabilistic<IntegerTensor>value - The supplied value.public java.util.Map<Vertex,DoubleTensor> dLogProb(IntegerTensor value, java.util.Set<? extends Vertex> withRespectTo)
ProbabilisticdLogProb in interface Probabilistic<IntegerTensor>value - at a given valuewithRespectTo - list of parents to differentiate with respect topublic IntegerTensor sampleWithShape(long[] shape, KeanuRandom random)
sampleWithShape in interface SamplableWithShape<IntegerTensor>