public class UniqueProcessor extends Object implements FeatureProcessor
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.
Modifier and Type | Class and Description |
---|---|
static class |
UniqueProcessor.UniqueType
The type of reduction operation to perform.
|
Constructor and Description |
---|
UniqueProcessor(UniqueProcessor.UniqueType reductionType)
Creates a UniqueProcessor using the specified reduction operation.
|
Modifier and Type | Method and Description |
---|---|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
List<ColumnarFeature> |
process(List<ColumnarFeature> features)
Processes a list of
ColumnarFeature s, transforming it
by adding conjunctions or removing unnecessary features. |
public UniqueProcessor(UniqueProcessor.UniqueType reductionType)
reductionType
- The reduction operation to perform.public List<ColumnarFeature> process(List<ColumnarFeature> features)
FeatureProcessor
ColumnarFeature
s, transforming it
by adding conjunctions or removing unnecessary features.process
in interface FeatureProcessor
features
- The list of features to process.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.