public class Transforms extends Object
Constructor and Description |
---|
Transforms() |
Modifier and Type | Method and Description |
---|---|
static IComplexNDArray |
abs(IComplexNDArray ndArray) |
static IComplexNDArray |
abs(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
abs(INDArray ndArray) |
static INDArray |
abs(INDArray ndArray,
boolean dup) |
static double |
cosineSim(INDArray d1,
INDArray d2)
Cosine similarity
|
static INDArray |
downSample(INDArray d1,
int[] stride)
Down sampling a signal (specifically the first 2 dimensions)
|
static IComplexNDArray |
eq(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
eq(IComplexNDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
eq(INDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
eq(INDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
exp(IComplexNDArray ndArray) |
static IComplexNDArray |
exp(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
exp(INDArray ndArray) |
static INDArray |
exp(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
floor(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
floor(IComplexNDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
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)
Binary matrix of whether the number at a given index is greater than
|
static IComplexNDArray |
gt(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
gt(IComplexNDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
gt(INDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
gt(INDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
hardTanh(IComplexNDArray ndArray) |
static IComplexNDArray |
hardTanh(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
hardTanh(INDArray ndArray) |
static INDArray |
hardTanh(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
identity(IComplexNDArray ndArray) |
static IComplexNDArray |
identity(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
identity(INDArray ndArray) |
static INDArray |
identity(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
log(IComplexNDArray ndArray) |
static IComplexNDArray |
log(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
log(INDArray ndArray) |
static INDArray |
log(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
lt(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
lt(IComplexNDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
lt(INDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
lt(INDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
max(IComplexNDArray ndArray) |
static IComplexNDArray |
max(IComplexNDArray ndArray,
boolean dup) |
static IComplexNDArray |
max(IComplexNDArray ndArray,
double max)
Max function
|
static IComplexNDArray |
max(IComplexNDArray ndArray,
double max,
boolean dup)
Max function
|
static INDArray |
max(INDArray ndArray) |
static INDArray |
max(INDArray ndArray,
boolean dup) |
static INDArray |
max(INDArray ndArray,
double max)
Max function
|
static INDArray |
max(INDArray ndArray,
double max,
boolean dup)
Max function
|
static INDArray |
maxPool(INDArray input,
int[] ds,
boolean ignoreBorder)
Max pooling
|
static IComplexNDArray |
neg(IComplexNDArray ndArray) |
static IComplexNDArray |
neg(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
neg(INDArray ndArray) |
static INDArray |
neg(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
neq(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
neq(IComplexNDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
neq(INDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static INDArray |
neq(INDArray ndArray,
boolean dup)
Binary matrix of whether the number at a given index is equal
|
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 |
pool(INDArray toPool,
int[] stride)
Pooled expectations
|
static IComplexNDArray |
pow(IComplexNDArray ndArray,
IComplexNumber power) |
static IComplexNDArray |
pow(IComplexNDArray ndArray,
IComplexNumber power,
boolean dup) |
static INDArray |
pow(INDArray ndArray,
Number power) |
static INDArray |
pow(INDArray ndArray,
Number power,
boolean dup) |
static IComplexNDArray |
round(IComplexNDArray ndArray) |
static IComplexNDArray |
round(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
round(INDArray ndArray) |
static INDArray |
round(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
sigmoid(IComplexNDArray ndArray) |
static IComplexNDArray |
sigmoid(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
sigmoid(INDArray ndArray) |
static INDArray |
sigmoid(INDArray ndArray,
boolean dup) |
static INDArray |
sign(IComplexNDArray toSign)
Signum function of this ndarray
|
static INDArray |
sign(IComplexNDArray toSign,
boolean dup)
Signum function of this ndarray
|
static INDArray |
sign(INDArray toSign)
Signum function of this ndarray
|
static INDArray |
sign(INDArray toSign,
boolean dup)
Signum function of this ndarray
|
static IComplexNDArray |
sqrt(IComplexNDArray ndArray) |
static IComplexNDArray |
sqrt(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
sqrt(INDArray ndArray) |
static INDArray |
sqrt(INDArray ndArray,
boolean dup) |
static IComplexNDArray |
stabilize(IComplexNDArray ndArray,
double k) |
static IComplexNDArray |
stabilize(IComplexNDArray ndArray,
double k,
boolean dup) |
static INDArray |
stabilize(INDArray ndArray,
double k) |
static INDArray |
stabilize(INDArray ndArray,
double k,
boolean dup) |
static IComplexNDArray |
tanh(IComplexNDArray ndArray) |
static IComplexNDArray |
tanh(IComplexNDArray ndArray,
boolean dup) |
static INDArray |
tanh(INDArray ndArray) |
static INDArray |
tanh(INDArray ndArray,
boolean dup) |
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 pool expectationspublic static INDArray downSample(INDArray d1, int[] stride)
d1
- stride
- public static INDArray pool(INDArray toPool, int[] stride)
toPool
- the ndarray to poolstride
- the 2d stride across the ndarraypublic static INDArray upSample(INDArray d, INDArray scale)
d
- scale
- public static double cosineSim(INDArray d1, INDArray d2)
d1
- d2
- public static INDArray normalizeZeroMeanAndUnitVariance(INDArray toNormalize)
toNormalize
- the ndarray to normalizepublic static INDArray unitVec(INDArray toScale)
toScale
- the ndarray to scalepublic static IComplexNDArray neg(IComplexNDArray ndArray)
public static INDArray eq(INDArray ndArray)
ndArray
- public static IComplexNDArray eq(IComplexNDArray ndArray)
ndArray
- public static INDArray neq(INDArray ndArray)
ndArray
- public static IComplexNDArray neq(IComplexNDArray ndArray)
ndArray
- public static INDArray floor(INDArray ndArray)
ndArray
- public static INDArray sign(IComplexNDArray toSign)
toSign
- public static INDArray sign(INDArray toSign)
toSign
- public static IComplexNDArray floor(IComplexNDArray ndArray)
ndArray
- public static INDArray gt(INDArray ndArray)
ndArray
- public static IComplexNDArray gt(IComplexNDArray ndArray)
ndArray
- public static INDArray lt(INDArray ndArray)
ndArray
- public static IComplexNDArray lt(IComplexNDArray ndArray)
ndArray
- public static IComplexNDArray stabilize(IComplexNDArray ndArray, double k)
public static IComplexNDArray abs(IComplexNDArray ndArray)
public static IComplexNDArray exp(IComplexNDArray ndArray)
public static IComplexNDArray hardTanh(IComplexNDArray ndArray)
public static IComplexNDArray identity(IComplexNDArray ndArray)
public static INDArray max(INDArray ndArray, double max)
ndArray
- max
- public static IComplexNDArray max(IComplexNDArray ndArray, double max)
ndArray
- the ndarray to take the max function ofmax
- the value to comparepublic static IComplexNDArray max(IComplexNDArray ndArray)
public static IComplexNDArray pow(IComplexNDArray ndArray, IComplexNumber power)
public static IComplexNDArray round(IComplexNDArray ndArray)
public static IComplexNDArray sigmoid(IComplexNDArray ndArray)
public static IComplexNDArray sqrt(IComplexNDArray ndArray)
public static IComplexNDArray tanh(IComplexNDArray ndArray)
public static IComplexNDArray log(IComplexNDArray ndArray)
public static INDArray eq(INDArray ndArray, boolean dup)
ndArray
- public static IComplexNDArray eq(IComplexNDArray ndArray, boolean dup)
ndArray
- public static INDArray neq(INDArray ndArray, boolean dup)
ndArray
- public static IComplexNDArray neq(IComplexNDArray ndArray, boolean dup)
ndArray
- public static INDArray floor(INDArray ndArray, boolean dup)
ndArray
- public static INDArray sign(IComplexNDArray toSign, boolean dup)
toSign
- public static INDArray sign(INDArray toSign, boolean dup)
toSign
- public static IComplexNDArray floor(IComplexNDArray ndArray, boolean dup)
ndArray
- public static INDArray gt(INDArray ndArray, boolean dup)
ndArray
- public static IComplexNDArray gt(IComplexNDArray ndArray, boolean dup)
ndArray
- public static INDArray lt(INDArray ndArray, boolean dup)
ndArray
- public static IComplexNDArray lt(IComplexNDArray ndArray, boolean dup)
ndArray
- public static IComplexNDArray stabilize(IComplexNDArray ndArray, double k, boolean dup)
public static IComplexNDArray abs(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray exp(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray hardTanh(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray identity(IComplexNDArray ndArray, boolean dup)
public static INDArray max(INDArray ndArray, double max, boolean dup)
ndArray
- max
- public static IComplexNDArray max(IComplexNDArray ndArray, double max, boolean dup)
ndArray
- the ndarray to take the max function ofmax
- the value to comparepublic static IComplexNDArray max(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray pow(IComplexNDArray ndArray, IComplexNumber power, boolean dup)
public static IComplexNDArray round(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray sigmoid(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray sqrt(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray tanh(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray log(IComplexNDArray ndArray, boolean dup)
public static IComplexNDArray neg(IComplexNDArray ndArray, boolean dup)
Copyright © 2015. All Rights Reserved.