public class DataSetUtil extends Object
Constructor and Description |
---|
DataSetUtil() |
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
merge2d(INDArray[][] arrays,
INDArray[][] masks,
int inOutIdx)
Merge the specified 2d arrays and masks.
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
merge2d(INDArray[] arrays,
INDArray[] masks)
Merge the specified 2d arrays and masks.
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
merge4d(INDArray[][] arrays,
INDArray[][] masks,
int inOutIdx)
Merge the specified 4d arrays and masks.
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
merge4d(INDArray[] arrays,
INDArray[] masks)
Merge the specified 4d arrays and masks.
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeFeatures(INDArray[][] featuresToMerge,
INDArray[][] featureMasksToMerge,
int inOutIdx)
Extract out the specified column, and merge the specified features and mask arrays (i.e., concatenate the examples)
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeFeatures(INDArray[] featuresToMerge,
INDArray[] featureMasksToMerge)
Merge the specified features and mask arrays (i.e., concatenate the examples)
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeLabels(INDArray[][] labelsToMerge,
INDArray[][] labelMasksToMerge,
int inOutIdx)
Extract out the specified column, and merge the specified label and label mask arrays
(i.e., concatenate the examples)
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeLabels(INDArray[] labelsToMerge,
INDArray[] labelMasksToMerge)
Merge the specified labels and label mask arrays (i.e., concatenate the examples)
|
static INDArray |
mergePerOutputMasks2d(int[] outShape,
INDArray[][] arrays,
INDArray[][] masks,
int inOutIdx) |
static INDArray |
mergePerOutputMasks2d(int[] outShape,
INDArray[] arrays,
INDArray[] masks) |
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeTimeSeries(INDArray[][] arrays,
INDArray[][] masks,
int inOutIdx)
Merge the specified time series (3d) arrays and masks.
|
static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> |
mergeTimeSeries(INDArray[] arrays,
INDArray[] masks)
Merge the specified time series (3d) arrays and masks.
|
static void |
setMaskedValuesToZero(INDArray data,
INDArray mask) |
static INDArray |
tailor2d(DataSet dataSet,
boolean areFeatures) |
static INDArray |
tailor2d(INDArray data,
INDArray mask) |
static INDArray |
tailor3d2d(DataSet dataset,
boolean areFeatures)
Deprecated.
|
static INDArray |
tailor3d2d(INDArray data,
INDArray mask) |
static INDArray |
tailor4d2d(DataSet dataset,
boolean areFeatures) |
static INDArray |
tailor4d2d(INDArray data) |
public static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeFeatures(@NonNull INDArray[] featuresToMerge, INDArray[] featureMasksToMerge)
featuresToMerge
- Features to mergefeatureMasksToMerge
- Mask arrays to merge. May be nullpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeFeatures(INDArray[][] featuresToMerge, INDArray[][] featureMasksToMerge, int inOutIdx)
featuresToMerge
- Features to merge. Will use featuresToMerge[all][inOutIdx]featureMasksToMerge
- Mask arrays to merge. May be nullpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeLabels(INDArray[] labelsToMerge, INDArray[] labelMasksToMerge)
labelsToMerge
- Features to mergelabelMasksToMerge
- Mask arrays to merge. May be nullpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeLabels(@NonNull INDArray[][] labelsToMerge, INDArray[][] labelMasksToMerge, int inOutIdx)
labelsToMerge
- Features to merge. Will use featuresToMerge[all][inOutIdx]labelMasksToMerge
- Mask arrays to merge. May be nullpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> merge2d(@NonNull INDArray[][] arrays, INDArray[][] masks, int inOutIdx)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergeinOutIdx
- Index to extract out before mergingpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> merge2d(INDArray[] arrays, INDArray[] masks)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergepublic static INDArray mergePerOutputMasks2d(int[] outShape, INDArray[][] arrays, INDArray[][] masks, int inOutIdx)
public static INDArray mergePerOutputMasks2d(int[] outShape, INDArray[] arrays, INDArray[] masks)
public static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeTimeSeries(INDArray[][] arrays, INDArray[][] masks, int inOutIdx)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergeinOutIdx
- Index to extract out before mergingpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> mergeTimeSeries(INDArray[] arrays, INDArray[] masks)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergepublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> merge4d(INDArray[][] arrays, INDArray[][] masks, int inOutIdx)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergeinOutIdx
- Index to extract out before mergingpublic static org.nd4j.linalg.primitives.Pair<INDArray,INDArray> merge4d(INDArray[] arrays, INDArray[] masks)
mergeFeatures(INDArray[], INDArray[])
and mergeLabels(INDArray[], INDArray[])
arrays
- Arrays to mergemasks
- Mask arrays to mergeCopyright © 2017. All rights reserved.