org.nd4j.linalg.ops.transforms
Class Transforms
- java.lang.Object
-
- org.nd4j.linalg.ops.transforms.Transforms
-
public class Transforms extends java.lang.ObjectFunctional interface for the different transform classes
-
-
Constructor Summary
Constructors Constructor and Description Transforms()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static IComplexNDArrayabs(IComplexNDArray ndArray)static IComplexNDArrayabs(IComplexNDArray ndArray, boolean dup)static INDArrayabs(INDArray ndArray)static INDArrayabs(INDArray ndArray, boolean dup)static doublecosineSim(INDArray d1, INDArray d2)Cosine similaritystatic INDArraydownSample(INDArray d1, int[] stride)Down sampling a signal (specifically the first 2 dimensions)static IComplexNDArrayeq(IComplexNDArray ndArray)Binary matrix of whether the number at a given index is equalstatic IComplexNDArrayeq(IComplexNDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArrayeq(INDArray ndArray)Binary matrix of whether the number at a given index is equalstatic INDArrayeq(INDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic IComplexNDArrayexp(IComplexNDArray ndArray)static IComplexNDArrayexp(IComplexNDArray ndArray, boolean dup)static INDArrayexp(INDArray ndArray)static INDArrayexp(INDArray ndArray, boolean dup)static IComplexNDArrayfloor(IComplexNDArray ndArray)Binary matrix of whether the number at a given index is equalstatic IComplexNDArrayfloor(IComplexNDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArrayfloor(INDArray ndArray)Binary matrix of whether the number at a given index is greater thanstatic INDArrayfloor(INDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is greater thanstatic IComplexNDArraygt(IComplexNDArray ndArray)Binary matrix of whether the number at a given index is equalstatic IComplexNDArraygt(IComplexNDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArraygt(INDArray ndArray)Binary matrix of whether the number at a given index is equalstatic INDArraygt(INDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic IComplexNDArrayhardTanh(IComplexNDArray ndArray)static IComplexNDArrayhardTanh(IComplexNDArray ndArray, boolean dup)static INDArrayhardTanh(INDArray ndArray)static INDArrayhardTanh(INDArray ndArray, boolean dup)static IComplexNDArrayidentity(IComplexNDArray ndArray)static IComplexNDArrayidentity(IComplexNDArray ndArray, boolean dup)static INDArrayidentity(INDArray ndArray)static INDArrayidentity(INDArray ndArray, boolean dup)static IComplexNDArraylog(IComplexNDArray ndArray)static IComplexNDArraylog(IComplexNDArray ndArray, boolean dup)static INDArraylog(INDArray ndArray)static INDArraylog(INDArray ndArray, boolean dup)static IComplexNDArraylt(IComplexNDArray ndArray)Binary matrix of whether the number at a given index is equalstatic IComplexNDArraylt(IComplexNDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArraylt(INDArray ndArray)Binary matrix of whether the number at a given index is equalstatic INDArraylt(INDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic IComplexNDArraymax(IComplexNDArray ndArray)static IComplexNDArraymax(IComplexNDArray ndArray, boolean dup)static IComplexNDArraymax(IComplexNDArray ndArray, double max)Max functionstatic IComplexNDArraymax(IComplexNDArray ndArray, double max, boolean dup)Max functionstatic INDArraymax(INDArray ndArray)static INDArraymax(INDArray ndArray, boolean dup)static INDArraymax(INDArray ndArray, double max)Max functionstatic INDArraymax(INDArray ndArray, double max, boolean dup)Max functionstatic INDArraymaxPool(INDArray input, int[] ds, boolean ignoreBorder)Max poolingstatic IComplexNDArrayneg(IComplexNDArray ndArray)static IComplexNDArrayneg(IComplexNDArray ndArray, boolean dup)static INDArrayneg(INDArray ndArray)static INDArrayneg(INDArray ndArray, boolean dup)static IComplexNDArrayneq(IComplexNDArray ndArray)Binary matrix of whether the number at a given index is equalstatic IComplexNDArrayneq(IComplexNDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArrayneq(INDArray ndArray)Binary matrix of whether the number at a given index is equalstatic INDArrayneq(INDArray ndArray, boolean dup)Binary matrix of whether the number at a given index is equalstatic INDArraynormalizeZeroMeanAndUnitVariance(INDArray toNormalize)Normalize data to zero mean and unit variance substract by the mean and divide by the standard deviationstatic INDArraypool(INDArray toPool, int[] stride)Pooled expectationsstatic IComplexNDArraypow(IComplexNDArray ndArray, IComplexNumber power)static IComplexNDArraypow(IComplexNDArray ndArray, IComplexNumber power, boolean dup)static INDArraypow(INDArray ndArray, java.lang.Number power)static INDArraypow(INDArray ndArray, java.lang.Number power, boolean dup)static IComplexNDArrayround(IComplexNDArray ndArray)static IComplexNDArrayround(IComplexNDArray ndArray, boolean dup)static INDArrayround(INDArray ndArray)static INDArrayround(INDArray ndArray, boolean dup)static IComplexNDArraysigmoid(IComplexNDArray ndArray)static IComplexNDArraysigmoid(IComplexNDArray ndArray, boolean dup)static INDArraysigmoid(INDArray ndArray)static INDArraysigmoid(INDArray ndArray, boolean dup)static INDArraysign(IComplexNDArray toSign)Signum function of this ndarraystatic INDArraysign(IComplexNDArray toSign, boolean dup)Signum function of this ndarraystatic INDArraysign(INDArray toSign)Signum function of this ndarraystatic INDArraysign(INDArray toSign, boolean dup)Signum function of this ndarraystatic IComplexNDArraysqrt(IComplexNDArray ndArray)static IComplexNDArraysqrt(IComplexNDArray ndArray, boolean dup)static INDArraysqrt(INDArray ndArray)static INDArraysqrt(INDArray ndArray, boolean dup)static IComplexNDArraystabilize(IComplexNDArray ndArray, double k)static IComplexNDArraystabilize(IComplexNDArray ndArray, double k, boolean dup)static INDArraystabilize(INDArray ndArray, double k)static INDArraystabilize(INDArray ndArray, double k, boolean dup)static IComplexNDArraytanh(IComplexNDArray ndArray)static IComplexNDArraytanh(IComplexNDArray ndArray, boolean dup)static INDArraytanh(INDArray ndArray)static INDArraytanh(INDArray ndArray, boolean dup)static INDArrayunitVec(INDArray toScale)Scale by 1 / norm2 of the matrixstatic INDArrayupSample(INDArray d, INDArray scale)Upsampling a signal (specifically the first 2 dimensions
-
-
-
Method Detail
-
maxPool
public static INDArray maxPool(INDArray input, int[] ds, boolean ignoreBorder)
Max pooling- Parameters:
input-ds- the strides with which to pool expectations- Returns:
-
downSample
public static INDArray downSample(INDArray d1, int[] stride)
Down sampling a signal (specifically the first 2 dimensions)- Parameters:
d1-stride-- Returns:
-
pool
public static INDArray pool(INDArray toPool, int[] stride)
Pooled expectations- Parameters:
toPool- the ndarray to poolstride- the 2d stride across the ndarray- Returns:
-
upSample
public static INDArray upSample(INDArray d, INDArray scale)
Upsampling a signal (specifically the first 2 dimensions- Parameters:
d-scale-- Returns:
-
cosineSim
public static double cosineSim(INDArray d1, INDArray d2)
Cosine similarity- Parameters:
d1-d2-- Returns:
-
normalizeZeroMeanAndUnitVariance
public static INDArray normalizeZeroMeanAndUnitVariance(INDArray toNormalize)
Normalize data to zero mean and unit variance substract by the mean and divide by the standard deviation- Parameters:
toNormalize- the ndarray to normalize- Returns:
- the normalized ndarray
-
unitVec
public static INDArray unitVec(INDArray toScale)
Scale by 1 / norm2 of the matrix- Parameters:
toScale- the ndarray to scale- Returns:
- the scaled ndarray
-
neg
public static IComplexNDArray neg(IComplexNDArray ndArray)
-
eq
public static INDArray eq(INDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
eq
public static IComplexNDArray eq(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
neq
public static INDArray neq(INDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
neq
public static IComplexNDArray neq(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
floor
public static INDArray floor(INDArray ndArray)
Binary matrix of whether the number at a given index is greater than- Parameters:
ndArray-- Returns:
-
sign
public static INDArray sign(IComplexNDArray toSign)
Signum function of this ndarray- Parameters:
toSign-- Returns:
-
sign
public static INDArray sign(INDArray toSign)
Signum function of this ndarray- Parameters:
toSign-- Returns:
-
floor
public static IComplexNDArray floor(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
gt
public static INDArray gt(INDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
gt
public static IComplexNDArray gt(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
lt
public static INDArray lt(INDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
lt
public static IComplexNDArray lt(IComplexNDArray ndArray)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
stabilize
public static IComplexNDArray stabilize(IComplexNDArray ndArray, double k)
-
abs
public static IComplexNDArray abs(IComplexNDArray ndArray)
-
exp
public static IComplexNDArray exp(IComplexNDArray ndArray)
-
hardTanh
public static IComplexNDArray hardTanh(IComplexNDArray ndArray)
-
identity
public static IComplexNDArray identity(IComplexNDArray ndArray)
-
max
public static INDArray max(INDArray ndArray, double max)
Max function- Parameters:
ndArray-max-- Returns:
-
max
public static IComplexNDArray max(IComplexNDArray ndArray, double max)
Max function- Parameters:
ndArray- the ndarray to take the max function ofmax- the value to compare- Returns:
-
max
public static IComplexNDArray max(IComplexNDArray ndArray)
-
pow
public static IComplexNDArray pow(IComplexNDArray ndArray, IComplexNumber power)
-
round
public static IComplexNDArray round(IComplexNDArray ndArray)
-
sigmoid
public static IComplexNDArray sigmoid(IComplexNDArray ndArray)
-
sqrt
public static IComplexNDArray sqrt(IComplexNDArray ndArray)
-
tanh
public static IComplexNDArray tanh(IComplexNDArray ndArray)
-
log
public static IComplexNDArray log(IComplexNDArray ndArray)
-
eq
public static INDArray eq(INDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
eq
public static IComplexNDArray eq(IComplexNDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
neq
public static INDArray neq(INDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
neq
public static IComplexNDArray neq(IComplexNDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
floor
public static INDArray floor(INDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is greater than- Parameters:
ndArray-- Returns:
-
sign
public static INDArray sign(IComplexNDArray toSign, boolean dup)
Signum function of this ndarray- Parameters:
toSign-- Returns:
-
sign
public static INDArray sign(INDArray toSign, boolean dup)
Signum function of this ndarray- Parameters:
toSign-- Returns:
-
floor
public static IComplexNDArray floor(IComplexNDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
gt
public static INDArray gt(INDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
gt
public static IComplexNDArray gt(IComplexNDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
lt
public static INDArray lt(INDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
lt
public static IComplexNDArray lt(IComplexNDArray ndArray, boolean dup)
Binary matrix of whether the number at a given index is equal- Parameters:
ndArray-- Returns:
-
stabilize
public static IComplexNDArray stabilize(IComplexNDArray ndArray, double k, boolean dup)
-
abs
public static IComplexNDArray abs(IComplexNDArray ndArray, boolean dup)
-
exp
public static IComplexNDArray exp(IComplexNDArray ndArray, boolean dup)
-
hardTanh
public static IComplexNDArray hardTanh(IComplexNDArray ndArray, boolean dup)
-
identity
public static IComplexNDArray identity(IComplexNDArray ndArray, boolean dup)
-
max
public static INDArray max(INDArray ndArray, double max, boolean dup)
Max function- Parameters:
ndArray-max-- Returns:
-
max
public static IComplexNDArray max(IComplexNDArray ndArray, double max, boolean dup)
Max function- Parameters:
ndArray- the ndarray to take the max function ofmax- the value to compare- Returns:
-
max
public static IComplexNDArray max(IComplexNDArray ndArray, boolean dup)
-
pow
public static IComplexNDArray pow(IComplexNDArray ndArray, IComplexNumber power, boolean dup)
-
round
public static IComplexNDArray round(IComplexNDArray ndArray, boolean dup)
-
sigmoid
public static IComplexNDArray sigmoid(IComplexNDArray ndArray, boolean dup)
-
sqrt
public static IComplexNDArray sqrt(IComplexNDArray ndArray, boolean dup)
-
tanh
public static IComplexNDArray tanh(IComplexNDArray ndArray, boolean dup)
-
log
public static IComplexNDArray log(IComplexNDArray ndArray, boolean dup)
-
neg
public static IComplexNDArray neg(IComplexNDArray ndArray, boolean dup)
-
-
DMelt 3.0 © DataMelt by jWork.ORG