Class MinMaxStats.Builder
- java.lang.Object
-
- org.nd4j.linalg.dataset.api.preprocessor.stats.MinMaxStats.Builder
-
- All Implemented Interfaces:
NormalizerStats.Builder<MinMaxStats>
- Enclosing class:
- MinMaxStats
public static class MinMaxStats.Builder extends Object implements NormalizerStats.Builder<MinMaxStats>
DynamicCustomOpsBuilder class that can incrementally update a running lower and upper bound 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 MinMaxStats.Builder
add(@NonNull INDArray data, INDArray mask)
Add rows of data to the statisticsMinMaxStats.Builder
addFeatures(DataSet dataSet)
Add the features of a DataSet to the statisticsMinMaxStats.Builder
addLabels(DataSet dataSet)
Add the labels of a DataSet to the statisticsMinMaxStats
build()
Create a DistributionStats object from the data ingested so far.
-
-
-
Method Detail
-
addFeatures
public MinMaxStats.Builder addFeatures(@NonNull DataSet dataSet)
Add the features of a DataSet to the statistics- Specified by:
addFeatures
in interfaceNormalizerStats.Builder<MinMaxStats>
-
addLabels
public MinMaxStats.Builder addLabels(@NonNull DataSet dataSet)
Add the labels of a DataSet to the statistics- Specified by:
addLabels
in interfaceNormalizerStats.Builder<MinMaxStats>
-
add
public MinMaxStats.Builder add(@NonNull @NonNull INDArray data, INDArray mask)
Add rows of data to the statistics- Specified by:
add
in interfaceNormalizerStats.Builder<MinMaxStats>
- 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 MinMaxStats 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<MinMaxStats>
- Returns:
-
-