public class BinomialDistribution extends BaseRandomOp
dataType, shapedimensionz, extraArgz, x, xVertexId, y, yVertexId, z, zVertexIddimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue| Constructor and Description |
|---|
BinomialDistribution() |
BinomialDistribution(@NonNull INDArray z,
@NonNull INDArray probabilities)
This op fills Z with binomial distribution over given trials with probability for each trial given as probabilities INDArray
|
BinomialDistribution(@NonNull INDArray z,
int trials,
double probability)
This op fills Z with binomial distribution over given trials with single given probability for all trials
|
BinomialDistribution(@NonNull INDArray z,
int trials,
@NonNull INDArray probabilities)
This op fills Z with binomial distribution over given trials with probability for each trial given as probabilities INDArray
|
BinomialDistribution(int trials,
double probability,
DataType dt,
long[] shape) |
BinomialDistribution(SameDiff sd,
int trials,
double probability,
DataType dataType,
long[] shape) |
BinomialDistribution(SameDiff sd,
int trials,
double probability,
long[] shape) |
| Modifier and Type | Method and Description |
|---|---|
List<DataType> |
calculateOutputDataTypes(List<DataType> inputDataTypes)
Calculate the data types for the output arrays.
|
List<LongShapeDescriptor> |
calculateOutputShape()
Calculate the output shape for this op
|
List<LongShapeDescriptor> |
calculateOutputShape(OpContext oc) |
List<SDVariable> |
doDiff(List<SDVariable> f1)
The actual implementation for automatic differentiation.
|
boolean |
isTripleArgRngOp() |
String |
onnxName()
The opName of this function in onnx
|
String |
opName()
The name of the op
|
int |
opNum()
The number of the op (mainly for old legacy XYZ ops
like
Op) |
void |
setZ(INDArray z)
set z (the solution ndarray)
|
String |
tensorflowName()
The opName of this function tensorflow
|
isInPlace, opTypeclearArrays, defineDimensions, dimensions, equals, extraArgs, extraArgsBuff, extraArgsDataBuff, getFinalResult, getInputArgument, getNumOutputs, getOpType, hashCode, initFromOnnx, initFromTensorFlow, outputVariables, setX, setY, toCustomOp, toString, x, y, zarg, arg, argNames, args, attributeAdaptersForFunction, configFieldName, diff, dup, getValue, isConfigProperties, larg, mappingsForFunction, onnxNames, outputs, outputVariable, outputVariables, outputVariablesNames, propertiesForFunction, rarg, replaceArg, setInstanceId, setPropertiesForFunction, setValueFor, tensorflowNamesclone, finalize, getClass, notify, notifyAll, wait, wait, waitclearArrays, extraArgs, extraArgsBuff, extraArgsDataBuff, setExtraArgs, setX, setY, toCustomOp, x, y, zpublic BinomialDistribution(SameDiff sd, int trials, double probability, long[] shape)
public BinomialDistribution(SameDiff sd, int trials, double probability, DataType dataType, long[] shape)
public BinomialDistribution(int trials,
double probability,
DataType dt,
long[] shape)
public BinomialDistribution()
public BinomialDistribution(@NonNull
@NonNull INDArray z,
int trials,
double probability)
z - trials - probability - public BinomialDistribution(@NonNull
@NonNull INDArray z,
int trials,
@NonNull
@NonNull INDArray probabilities)
z - trials - probabilities - array with probability value for each trialpublic int opNum()
DifferentialFunctionOp)opNum in interface OpopNum in class DifferentialFunctionpublic String opName()
DifferentialFunctionopName in interface OpopName in class DifferentialFunctionpublic String onnxName()
DifferentialFunctionpublic String tensorflowName()
DifferentialFunctiontensorflowName in class BaseOppublic List<LongShapeDescriptor> calculateOutputShape(OpContext oc)
calculateOutputShape in class DifferentialFunctionpublic List<LongShapeDescriptor> calculateOutputShape()
DifferentialFunctioncalculateOutputShape in class BaseRandomOppublic List<SDVariable> doDiff(List<SDVariable> f1)
DifferentialFunctiondoDiff in class DifferentialFunctionpublic void setZ(INDArray z)
Oppublic List<DataType> calculateOutputDataTypes(List<DataType> inputDataTypes)
DifferentialFunctionDifferentialFunction.calculateOutputShape(), this method differs in that it does not
require the input arrays to be populated.
This is important as it allows us to do greedy datatype inference for the entire net - even if arrays are not
available.calculateOutputDataTypes in class BaseRandomOpinputDataTypes - The data types of the inputspublic boolean isTripleArgRngOp()
isTripleArgRngOp in class BaseRandomOpCopyright © 2021. All rights reserved.