Interface Featurizer.DataFeaturizer
- All Superinterfaces:
Featurizer
- Enclosing interface:
- Featurizer
A
Featurizer that only supports the data featurize operations, but not the full
deFeaturize operations used by labels.-
Nested Class Summary
Nested classes/interfaces inherited from interface ai.djl.basicdataset.tabular.utils.Featurizer
Featurizer.DataFeaturizer -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the length of the data array required byFeaturizer.deFeaturize(float[]).default ObjectdeFeaturize(float[] data) Converts the output data for a label back into the Java type.Methods inherited from interface ai.djl.basicdataset.tabular.utils.Featurizer
featurize
-
Method Details
-
dataRequired
default int dataRequired()Returns the length of the data array required byFeaturizer.deFeaturize(float[]).- Specified by:
dataRequiredin interfaceFeaturizer- Returns:
- the length of the data array required by
Featurizer.deFeaturize(float[])
-
deFeaturize
Converts the output data for a label back into the Java type.- Specified by:
deFeaturizein interfaceFeaturizer- Parameters:
data- the data vector correspondign to the feature- Returns:
- a Java type (depending on the
Featurizer) representing the data.
-