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.Builderadd(@NonNull INDArray data, INDArray mask)Add rows of data to the statisticsDistributionStats.BuilderaddFeatures(DataSet dataSet)Add the features of a DataSet to the statisticsDistributionStats.BuilderaddLabels(DataSet dataSet)Add the labels of a DataSet to the statisticsDistributionStatsbuild()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:
addFeaturesin interfaceNormalizerStats.Builder<DistributionStats>
-
addLabels
public DistributionStats.Builder addLabels(@NonNull DataSet dataSet)
Add the labels of a DataSet to the statistics- Specified by:
addLabelsin interfaceNormalizerStats.Builder<DistributionStats>
-
add
public DistributionStats.Builder add(@NonNull @NonNull INDArray data, INDArray mask)
Add rows of data to the statistics- Specified by:
addin 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:
buildin interfaceNormalizerStats.Builder<DistributionStats>- Returns:
-
-