public class Transforms extends Object
Constructor and Description |
---|
Transforms() |
Modifier and Type | Method and Description |
---|---|
static INDArray |
abs(INDArray ndArray)
Abs funciton
|
static INDArray |
abs(INDArray ndArray,
boolean dup)
Abs function
|
static INDArray |
avgPooling(INDArray toPool,
int[] stride)
Pooled expectations(avg)
|
static INDArray |
ceiling(INDArray ndArray)
Binary matrix of whether the number at a given index is greater than
|
static INDArray |
ceiling(INDArray ndArray,
boolean copyOnOps)
Ceiling function
|
static double |
cosineSim(INDArray d1,
INDArray d2)
Cosine similarity
|
static INDArray |
downSample(INDArray d1,
int[] stride)
Down sampling a signal
for the first stride dimensions
|
static INDArray |
eps(INDArray ndArray) |
static INDArray |
eps(INDArray ndArray,
boolean dup)
Eps function
|
static INDArray |
exp(INDArray ndArray) |
static INDArray |
exp(INDArray ndArray,
boolean dup)
Exp function
|
static INDArray |
floor(INDArray ndArray)
Binary matrix of whether the number at a given index is greater than
|
static INDArray |
floor(INDArray ndArray,
boolean dup)
Floor function
|
static INDArray |
greaterThanOrEqual(INDArray first,
INDArray ndArray)
1 if greater than or equal to 0 otherwise (at each element)
|
static INDArray |
greaterThanOrEqual(INDArray first,
INDArray ndArray,
boolean dup)
Eps function
|
static INDArray |
hardTanh(INDArray ndArray) |
static INDArray |
hardTanh(INDArray ndArray,
boolean dup)
Hard tanh
|
static INDArray |
identity(INDArray ndArray) |
static INDArray |
identity(INDArray ndArray,
boolean dup)
Identity function
|
static INDArray |
lessThanOrEqual(INDArray first,
INDArray ndArray)
1 if less than or equal to 0 otherwise (at each element)
|
static INDArray |
lessThanOrEqual(INDArray first,
INDArray ndArray,
boolean dup)
Eps function
|
static INDArray |
log(INDArray ndArray) |
static INDArray |
log(INDArray ndArray,
boolean dup)
Log function
|
static INDArray |
max(INDArray ndArray,
double k)
Stabilize to be within a range of k
|
static INDArray |
max(INDArray ndArray,
double k,
boolean dup)
Stabilize to be within a range of k
|
static INDArray |
maxPool(INDArray input,
int[] ds,
boolean ignoreBorder)
Max pooling
|
static INDArray |
neg(INDArray ndArray)
Returns the negative of an ndarray
|
static INDArray |
neg(INDArray ndArray,
boolean dup)
Negative
|
static INDArray |
normalizeZeroMeanAndUnitVariance(INDArray toNormalize)
Normalize data to zero mean and unit variance
substract by the mean and divide by the standard deviation
|
static INDArray |
pow(INDArray ndArray,
Number power)
Pow function
|
static INDArray |
pow(INDArray ndArray,
Number power,
boolean dup)
Pow function
|
static INDArray |
round(INDArray ndArray)
Rounding function
|
static INDArray |
round(INDArray ndArray,
boolean dup)
Rounding function
|
static INDArray |
sigmoid(INDArray ndArray)
Sigmoid function
|
static INDArray |
sigmoid(INDArray ndArray,
boolean dup)
Sigmoid function
|
static INDArray |
sign(INDArray toSign)
Signum function of this ndarray
|
static INDArray |
sign(INDArray toSign,
boolean dup)
Signum function of this ndarray
|
static INDArray |
sqrt(INDArray ndArray)
Sqrt function
|
static INDArray |
sqrt(INDArray ndArray,
boolean dup)
Sqrt function
|
static INDArray |
stabilize(INDArray ndArray,
double k) |
static INDArray |
stabilize(INDArray ndArray,
double k,
boolean dup)
Stabilize to be within a range of k
|
static INDArray |
sumPooling(INDArray toPool,
int[] stride)
Pooled expectations(sum)
|
static INDArray |
tanh(INDArray ndArray)
Tanh function
|
static INDArray |
tanh(INDArray ndArray,
boolean dup)
Tanh function
|
static INDArray |
unitVec(INDArray toScale)
Scale by 1 / norm2 of the matrix
|
static INDArray |
upSample(INDArray d,
INDArray scale)
Upsampling a signal (specifically the first 2 dimensions)
|
public static INDArray maxPool(INDArray input, int[] ds, boolean ignoreBorder)
input
- ds
- the strides with which to max pool expectationspublic static INDArray downSample(INDArray d1, int[] stride)
d1
- the data to down samplestride
- the stride at which to downsamplepublic static INDArray avgPooling(INDArray toPool, int[] stride)
toPool
- the ndarray to sumPoolingstride
- the 2d stride across the ndarraypublic static INDArray sumPooling(INDArray toPool, int[] stride)
toPool
- the ndarray to sumPoolingstride
- the 2d stride across the ndarraypublic static INDArray upSample(INDArray d, INDArray scale)
d
- the data to upsamplescale
- the amount to scale bypublic static double cosineSim(INDArray d1, INDArray d2)
d1
- the first vectord2
- the second vectorpublic static INDArray normalizeZeroMeanAndUnitVariance(INDArray toNormalize)
toNormalize
- the ndarray to normalizepublic static INDArray unitVec(INDArray toScale)
toScale
- the ndarray to scalepublic static INDArray neg(INDArray ndArray)
ndArray
- the ndarray to take the negative ofpublic static INDArray floor(INDArray ndArray)
ndArray
- public static INDArray ceiling(INDArray ndArray)
ndArray
- public static INDArray ceiling(INDArray ndArray, boolean copyOnOps)
ndArray
- copyOnOps
- public static INDArray sign(INDArray toSign)
toSign
- public static INDArray pow(INDArray ndArray, Number power)
ndArray
- the ndarray to raise hte power ofpower
- the power to raise bypublic static INDArray round(INDArray ndArray)
ndArray
- public static INDArray sigmoid(INDArray ndArray)
ndArray
- public static INDArray greaterThanOrEqual(INDArray first, INDArray ndArray)
first
- ndArray
- public static INDArray lessThanOrEqual(INDArray first, INDArray ndArray)
first
- ndArray
- public static INDArray lessThanOrEqual(INDArray first, INDArray ndArray, boolean dup)
ndArray
- public static INDArray greaterThanOrEqual(INDArray first, INDArray ndArray, boolean dup)
ndArray
- public static INDArray eps(INDArray ndArray, boolean dup)
ndArray
- public static INDArray floor(INDArray ndArray, boolean dup)
ndArray
- public static INDArray sign(INDArray toSign, boolean dup)
toSign
- public static INDArray max(INDArray ndArray, double k, boolean dup)
ndArray
- tbe ndarrayk
- dup
- public static INDArray max(INDArray ndArray, double k)
ndArray
- tbe ndarrayk
- public static INDArray stabilize(INDArray ndArray, double k, boolean dup)
ndArray
- tbe ndarrayk
- dup
- public static INDArray abs(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray exp(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray hardTanh(INDArray ndArray, boolean dup)
ndArray
- the inputdup
- whether to duplicate the ndarray and return it as the resultpublic static INDArray identity(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray pow(INDArray ndArray, Number power, boolean dup)
ndArray
- power
- dup
- public static INDArray round(INDArray ndArray, boolean dup)
ndArray
- the ndarraydup
- public static INDArray sigmoid(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray sqrt(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray tanh(INDArray ndArray, boolean dup)
ndArray
- dup
- public static INDArray log(INDArray ndArray, boolean dup)
ndArray
- dup
- Copyright © 2015. All Rights Reserved.