Class Feature
java.lang.Object
ai.djl.basicdataset.tabular.utils.Feature
A class contains feature name and its
Featurizer
.-
Constructor Summary
ConstructorDescriptionConstructs aFeature
instance.Feature
(String name, Featurizer featurizer) Constructs aFeature
instance.Feature
(String name, Featurizer.DataFeaturizer featurizer) Constructs aFeature
instance.Constructs aFeature
instance. -
Method Summary
-
Constructor Details
-
Feature
Constructs aFeature
instance.- Parameters:
name
- the feature namefeaturizer
- theFeaturizer
-
Feature
Constructs aFeature
instance.- Parameters:
name
- the feature namefeaturizer
- theFeaturizer
-
Feature
Constructs aFeature
instance.- Parameters:
name
- the feature namenumeric
- true if input is numeric data
-
Feature
Constructs aFeature
instance.- 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
-