public class Transforms extends Object
Constructor and Description |
---|
Transforms() |
Modifier and Type | Method and Description |
---|---|
static IComplexNDArray |
abs(IComplexNDArray ndArray) |
static INDArray |
abs(INDArray ndArray) |
static double |
cosineSim(INDArray d1,
INDArray d2)
Consine 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 INDArray |
eq(INDArray ndArray)
Binary matrix of whether the number at a given index is equal
|
static IComplexNDArray |
exp(IComplexNDArray ndArray) |
static INDArray |
exp(INDArray ndArray) |
static IComplexNDArray |
floor(IComplexNDArray ndArray)
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 greatger than
|
static IComplexNDArray |
gt(IComplexNDArray ndArray)
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 IComplexNDArray |
hardTanh(IComplexNDArray ndArray) |
static INDArray |
hardTanh(INDArray ndArray) |
static IComplexNDArray |
identity(IComplexNDArray ndArray) |
static INDArray |
identity(INDArray ndArray) |
static IComplexNDArray |
log(IComplexNDArray ndArray) |
static INDArray |
log(INDArray ndArray) |
static IComplexNDArray |
lt(IComplexNDArray ndArray)
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 IComplexNDArray |
max(IComplexNDArray ndArray) |
static INDArray |
max(INDArray ndArray) |
static INDArray |
maxPool(INDArray input,
int[] ds,
boolean ignoreBorder)
Max pooling
|
static IComplexNDArray |
neg(IComplexNDArray ndArray) |
static INDArray |
neg(INDArray ndArray) |
static INDArray |
normalizeZeroMeanAndUnitVariance(INDArray toNormalize) |
static INDArray |
pool(INDArray toPool,
int[] stride)
Pooled expectations
|
static IComplexNDArray |
pow(IComplexNDArray ndArray,
IComplexNumber power) |
static INDArray |
pow(INDArray ndArray,
Number power) |
static IComplexNDArray |
round(IComplexNDArray ndArray) |
static INDArray |
round(INDArray ndArray) |
static IComplexNDArray |
sigmoid(IComplexNDArray ndArray) |
static INDArray |
sigmoid(INDArray ndArray) |
static IComplexNDArray |
sqrt(IComplexNDArray ndArray) |
static INDArray |
sqrt(INDArray ndArray) |
static IComplexNDArray |
stabilize(IComplexNDArray ndArray,
float k) |
static INDArray |
stabilize(INDArray ndArray,
float k) |
static IComplexNDArray |
tanh(IComplexNDArray ndArray) |
static INDArray |
tanh(INDArray ndArray) |
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 IComplexNDArray neg(IComplexNDArray ndArray)
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)
public static INDArray unitVec(INDArray toScale)
toScale
- the ndarray to scalepublic static INDArray eq(INDArray ndArray)
ndArray
- public static IComplexNDArray eq(IComplexNDArray ndArray)
ndArray
- public static INDArray floor(INDArray ndArray)
ndArray
- 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, float 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 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)
Copyright © 2014. All Rights Reserved.