public class TimeSeriesUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
movingAverage(org.nd4j.linalg.api.ndarray.INDArray toAvg,
int n)
Calculate a moving average given the length
|
static org.nd4j.linalg.api.ndarray.INDArray |
reshape2dTo3d(org.nd4j.linalg.api.ndarray.INDArray in,
int miniBatchSize) |
static org.nd4j.linalg.api.ndarray.INDArray |
reshape3dTo2d(org.nd4j.linalg.api.ndarray.INDArray in) |
static org.nd4j.linalg.api.ndarray.INDArray |
reshapePerOutputTimeSeriesMaskTo2d(org.nd4j.linalg.api.ndarray.INDArray perOutputTimeSeriesMask) |
static org.nd4j.linalg.api.ndarray.INDArray |
reshapeTimeSeriesMaskToVector(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMask)
Reshape time series mask arrays.
|
static org.nd4j.linalg.api.ndarray.INDArray |
reshapeVectorToTimeSeriesMask(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMaskAsVector,
int minibatchSize)
Reshape time series mask arrays.
|
public static org.nd4j.linalg.api.ndarray.INDArray movingAverage(org.nd4j.linalg.api.ndarray.INDArray toAvg, int n)
toAvg
- the array to averagen
- the length of the moving windowpublic static org.nd4j.linalg.api.ndarray.INDArray reshapeTimeSeriesMaskToVector(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMask)
timeSeriesMask
- Mask array to reshape to a column vectorpublic static org.nd4j.linalg.api.ndarray.INDArray reshapeVectorToTimeSeriesMask(org.nd4j.linalg.api.ndarray.INDArray timeSeriesMaskAsVector, int minibatchSize)
timeSeriesMaskAsVector
- Mask array to reshape to a column vectorpublic static org.nd4j.linalg.api.ndarray.INDArray reshapePerOutputTimeSeriesMaskTo2d(org.nd4j.linalg.api.ndarray.INDArray perOutputTimeSeriesMask)
public static org.nd4j.linalg.api.ndarray.INDArray reshape3dTo2d(org.nd4j.linalg.api.ndarray.INDArray in)
public static org.nd4j.linalg.api.ndarray.INDArray reshape2dTo3d(org.nd4j.linalg.api.ndarray.INDArray in, int miniBatchSize)