Modifier and Type | Method and Description |
---|---|
INDArray |
SameDiffOpExecutioner.exec(RandomOp op,
Random rng)
This method executes specific RandomOp against specified RNG
|
Modifier and Type | Method and Description |
---|---|
INDArray |
DefaultOpExecutioner.exec(RandomOp op,
Random rng)
This method executes specific RandomOp against specified RNG
|
INDArray |
OpExecutioner.exec(RandomOp op,
Random rng)
This method executes specific RandomOp against specified RNG
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultRandom
Apache commons based random number generation
Please note: this implementation can't be used for NativeOps execution
|
Modifier and Type | Field and Description |
---|---|
protected Random |
BaseDistribution.random |
Constructor and Description |
---|
BaseDistribution(Random rng) |
Constructor and Description |
---|
BinomialDistribution(Random rng,
int trials,
double p)
Creates a binomial distribution.
|
LogNormalDistribution(Random rng,
double mean,
double sd) |
LogNormalDistribution(Random rng,
double mean,
double sd,
double inverseCumAccuracy)
Creates a normal distribution.
|
LogNormalDistribution(Random rng,
double standardDeviation,
INDArray means) |
NormalDistribution(Random rng,
double mean,
double sd) |
NormalDistribution(Random rng,
double mean,
double sd,
double inverseCumAccuracy)
Creates a normal distribution.
|
NormalDistribution(Random rng,
double standardDeviation,
INDArray means) |
TruncatedNormalDistribution(Random rng,
double mean,
double sd) |
TruncatedNormalDistribution(Random rng,
double mean,
double sd,
double inverseCumAccuracy)
Creates a normal distribution.
|
TruncatedNormalDistribution(Random rng,
double standardDeviation,
INDArray means) |
UniformDistribution(Random rng,
double lower,
double upper)
Creates a uniform distribution.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.sample(int numSamples,
Random rng)
Sample without replacement
|
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement)
Sample a dataset
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.sample(int numSamples,
Random rng) |
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement) |
Constructor and Description |
---|
RandomProjection(double eps,
Random rng) |
RandomProjection(int components,
Random rng) |
Modifier and Type | Field and Description |
---|---|
protected static Class<? extends Random> |
Nd4j.randomClazz |
Modifier and Type | Method and Description |
---|---|
Random |
RandomFactory.getNewRandomInstance()
This method returns new onject implementing Random interface, initialized with System.currentTimeMillis() as seed
|
Random |
RandomFactory.getNewRandomInstance(long seed)
This method returns new onject implementing Random interface, initialized with seed value
|
Random |
RandomFactory.getNewRandomInstance(long seed,
long size)
This method returns new onject implementing Random interface, initialized with seed value, with size of elements in buffer
|
static Random |
Nd4j.getRandom()
Get the current random generator
|
Random |
RandomFactory.getRandom()
This method returns Random implementation instance associated with calling thread
|
Modifier and Type | Method and Description |
---|---|
static INDArray |
Nd4j.choice(INDArray source,
INDArray probs,
INDArray target,
Random rng)
This method samples value from Source array to Target, with probabilites provided in Probs argument
|
static INDArray |
Nd4j.choice(INDArray source,
INDArray probs,
int numSamples,
Random rng)
This method returns new INDArray instance, sampled from Source array with probabilities given in Probs
|
static INDArray |
Nd4j.rand(INDArray target,
double min,
double max,
Random rng)
Fill the given ndarray with random numbers drawn from a uniform distribution using the given RandomGenerator
|
static INDArray |
Nd4j.rand(INDArray target,
Random rng)
Fill the given ndarray with random numbers drawn from a uniform distribution using the given RandomGenerator
|
static INDArray |
Nd4j.rand(int[] shape,
double min,
double max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
INDArray |
NDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
static INDArray |
Nd4j.rand(int[] shape,
Random rng)
Create a random ndarray with the given shape using the given RandomGenerator
|
INDArray |
NDArrayFactory.rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.rand(int rows,
int columns,
double min,
double max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int rows,
int columns,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
double min,
double max,
Random rng) |
INDArray |
NDArrayFactory.rand(int rows,
int columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
static INDArray |
Nd4j.rand(int rows,
int columns,
Random rng)
Create a random ndarray with the given shape using the given rng
|
INDArray |
NDArrayFactory.rand(int rows,
int columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.randn(INDArray target,
Random rng)
Fill the given ndarray with random numbers drawn from a normal distribution utilizing the given random generator
|
static INDArray |
Nd4j.randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
NDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
BaseNDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
static INDArray |
Nd4j.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
INDArray |
NDArrayFactory.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
INDArray |
BaseNDArrayFactory.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
Copyright © 2018. All rights reserved.