Class DistributionStats.Builder
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.stats.DistributionStats.Builder
-
- All Implemented Interfaces:
NormalizerStats.Builder<DistributionStats>
- Enclosing class:
- DistributionStats
public static class DistributionStats.Builder extends Object implements NormalizerStats.Builder<DistributionStats>
DynamicCustomOpsBuilder class that can incrementally update a running mean and variance in order to create statistics for a large set of data
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributionStats.Builder
add(@NonNull INDArray data, INDArray mask)
Add rows of data to the statisticsDistributionStats.Builder
addFeatures(DataSet dataSet)
Add the features of a DataSet to the statisticsDistributionStats.Builder
addLabels(DataSet dataSet)
Add the labels of a DataSet to the statisticsDistributionStats
build()
Create a DistributionStats object from the data ingested so far.
-
-
-
Method Detail
-
addFeatures
public DistributionStats.Builder addFeatures(@NonNull DataSet dataSet)
Add the features of a DataSet to the statistics- Specified by:
addFeatures
in interfaceNormalizerStats.Builder<DistributionStats>
-
addLabels
public DistributionStats.Builder addLabels(@NonNull DataSet dataSet)
Add the labels of a DataSet to the statistics- Specified by:
addLabels
in interfaceNormalizerStats.Builder<DistributionStats>
-
add
public DistributionStats.Builder add(@NonNull @NonNull INDArray data, INDArray mask)
Add rows of data to the statistics- Specified by:
add
in interfaceNormalizerStats.Builder<DistributionStats>
- Parameters:
data
- the matrix containing multiple rows of data to includemask
- (optionally) the mask of the data, useful for e.g. time series
-
build
public DistributionStats build()
Create a DistributionStats object from the data ingested so far. Can be used multiple times when updating online.- Specified by:
build
in interfaceNormalizerStats.Builder<DistributionStats>
- Returns:
-
-