public static class DistributionStats.Builder extends Object implements NormalizerStats.Builder<DistributionStats>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DistributionStats.Builder |
add(@NonNull INDArray data,
INDArray mask)
Add rows of data to the statistics
|
DistributionStats.Builder |
addFeatures(DataSet dataSet)
Add the features of a DataSet to the statistics
|
DistributionStats.Builder |
addLabels(DataSet dataSet)
Add the labels of a DataSet to the statistics
|
DistributionStats |
build()
Create a DistributionStats object from the data ingested so far.
|
public DistributionStats.Builder addFeatures(@NonNull DataSet dataSet)
addFeatures
in interface NormalizerStats.Builder<DistributionStats>
public DistributionStats.Builder addLabels(@NonNull DataSet dataSet)
addLabels
in interface NormalizerStats.Builder<DistributionStats>
public DistributionStats.Builder add(@NonNull @NonNull INDArray data, INDArray mask)
add
in interface NormalizerStats.Builder<DistributionStats>
data
- the matrix containing multiple rows of data to includemask
- (optionally) the mask of the data, useful for e.g. time seriespublic DistributionStats build()
build
in interface NormalizerStats.Builder<DistributionStats>
Copyright © 2020. All rights reserved.