Package org.tribuo.data.text
Interface FeatureTransformer
- All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
- All Known Implementing Classes:
FeatureHasher
public interface FeatureTransformer
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
A feature transformer maps a list of features to a new list of features.
Useful for example to apply the hashing trick to a set of features.
Note a list of features returned by a FeatureTransformer
may contain
duplicate features, and should be reduced to ensure that each feature is unique.
-
Method Summary
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable
getProvenance
-
Method Details
-
map
Transforms features into a new list of features- Parameters:
tag
- The feature name tag.features
- The features to transform.- Returns:
- The transformed features.
-