Class UniqueProcessor
java.lang.Object
org.tribuo.data.columnar.processors.feature.UniqueProcessor
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
,FeatureProcessor
Processes a feature list, aggregating all the feature values with the same name.
The aggregation is user controllable.
In most cases this will be unnecessary as the feature names will be unique as they are keyed by the field name, however it's possible to induce collisions via text fields or other mechanisms.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of reduction operation to perform. -
Constructor Summary
ConstructorDescriptionUniqueProcessor
(UniqueProcessor.UniqueType reductionType) Creates a UniqueProcessor using the specified reduction operation. -
Method Summary
Modifier and TypeMethodDescriptioncom.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance
process
(List<ColumnarFeature> features) Processes a list ofColumnarFeature
s, transforming it by adding conjunctions or removing unnecessary features.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
UniqueProcessor
Creates a UniqueProcessor using the specified reduction operation.- Parameters:
reductionType
- The reduction operation to perform.
-
-
Method Details
-
process
Description copied from interface:FeatureProcessor
Processes a list ofColumnarFeature
s, transforming it by adding conjunctions or removing unnecessary features.- Specified by:
process
in interfaceFeatureProcessor
- Parameters:
features
- The list of features to process.- Returns:
- A (possibly empty) list of features.
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenance
in interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-