Modifier and Type | Method and Description |
---|---|
abstract 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 |
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 | 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 a new object 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(@NonNull INDArray source,
@NonNull INDArray probs,
@NonNull 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(double min,
double max,
Random rng,
long... shape)
Generates a random matrix between min and max
|
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
|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
static INDArray |
Nd4j.rand(int[] shape,
double min,
double max,
Random rng)
|
INDArray |
NDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.rand(int[] shape,
Random rng)
Deprecated.
|
INDArray |
NDArrayFactory.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,
Random rng)
Create a random ndarray with the given shape using the given rng
|
INDArray |
BaseNDArrayFactory.rand(long[] shape,
double min,
double max,
Random rng) |
static INDArray |
Nd4j.rand(long[] shape,
double min,
double max,
Random rng)
|
INDArray |
NDArrayFactory.rand(long[] shape,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(long[] shape,
float min,
float max,
Random rng) |
INDArray |
NDArrayFactory.rand(long[] shape,
float min,
float max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(long[] shape,
Random r) |
INDArray |
NDArrayFactory.rand(long[] shape,
Random r) |
INDArray |
BaseNDArrayFactory.rand(long rows,
long columns,
double min,
double max,
Random rng) |
INDArray |
NDArrayFactory.rand(long rows,
long columns,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(long rows,
long columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(long rows,
long columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(long rows,
long columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
NDArrayFactory.rand(long rows,
long columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.rand(Random rng,
long... shape)
Create a random ndarray with the given shape using the given RandomGenerator
|
static INDArray |
Nd4j.randn(double mean,
double stddev,
INDArray target,
Random rng) |
static INDArray |
Nd4j.randn(double mean,
double stddev,
long[] shape,
Random 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
|
INDArray |
BaseNDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
static INDArray |
Nd4j.randn(int[] shape,
Random r)
Deprecated.
|
INDArray |
NDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
BaseNDArrayFactory.randn(long[] shape,
Random r) |
static INDArray |
Nd4j.randn(long[] shape,
Random r)
Deprecated.
|
INDArray |
NDArrayFactory.randn(long[] shape,
Random r) |
INDArray |
BaseNDArrayFactory.randn(long rows,
long columns,
Random r)
Random normal using the given rng
|
INDArray |
NDArrayFactory.randn(long rows,
long columns,
Random r)
Random normal using the given rng
|
static INDArray |
Nd4j.randn(Random r,
long... shape)
Random normal using the given rng
|
Copyright © 2022. All rights reserved.