public interface FieldProcessor
extends com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Modifier and Type | Interface and Description |
---|---|
static class |
FieldProcessor.GeneratedFeatureType
The types of generated features.
|
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE
The namespacing separator.
|
Modifier and Type | Method and Description |
---|---|
FieldProcessor |
copy(String newFieldName)
Returns a copy of this FieldProcessor bound to the supplied newFieldName.
|
FieldProcessor.GeneratedFeatureType |
getFeatureType()
Returns the feature type this FieldProcessor generates.
|
String |
getFieldName()
Gets the field name this FieldProcessor uses.
|
default int |
getNumNamespaces()
Binarised categoricals can be namespaced, where the field name is appended with "#<non-negative-int>" to denote the
namespace.
|
List<ColumnarFeature> |
process(String value)
Processes the field value and generates a (possibly empty) list of
ColumnarFeature s. |
static final String NAMESPACE
String getFieldName()
List<ColumnarFeature> process(String value)
ColumnarFeature
s.value
- The field value to process.ColumnarFeature
s.FieldProcessor.GeneratedFeatureType getFeatureType()
default int getNumNamespaces()
FieldProcessor copy(String newFieldName)
newFieldName
- The new field name for the copy.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.