Interface Featurizer.DataFeaturizer
-
- All Superinterfaces:
Featurizer
- Enclosing interface:
- Featurizer
public static interface Featurizer.DataFeaturizer extends Featurizer
AFeaturizerthat 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
All Methods Instance Methods Default Methods Modifier and Type Method Description default intdataRequired()Returns the length of the data array required byFeaturizer.deFeaturize(float[]).default java.lang.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 Detail
-
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
default java.lang.Object deFeaturize(float[] data)
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.
-
-