Class Feature
java.lang.Object
ai.djl.basicdataset.tabular.utils.Feature
A class contains feature name and its
Featurizer.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aFeatureinstance.Feature(String name, Featurizer featurizer) Constructs aFeatureinstance.Feature(String name, Featurizer.DataFeaturizer featurizer) Constructs aFeatureinstance.Constructs aFeatureinstance. -
Method Summary
-
Constructor Details
-
Feature
Constructs aFeatureinstance.- Parameters:
name- the feature namefeaturizer- theFeaturizer
-
Feature
Constructs aFeatureinstance.- Parameters:
name- the feature namefeaturizer- theFeaturizer
-
Feature
Constructs aFeatureinstance.- Parameters:
name- the feature namenumeric- true if input is numeric data
-
Feature
Constructs aFeatureinstance.- Parameters:
name- the feature namemap- a map contains categorical value maps to indexonehotEncode- true if use onehot encode
-
-
Method Details
-
getName
Returns the feature name.- Returns:
- the feature name
-
getFeaturizer
Returns theFeaturizer.- Returns:
- the
Featurizer
-