Class DoubleFieldProcessor
java.lang.Object
org.tribuo.data.columnar.processors.field.DoubleFieldProcessor
- All Implemented Interfaces:
- com.oracle.labs.mlrg.olcut.config.Configurable,- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,- FieldProcessor
Processes a column that contains a real value. The name of the feature
 will be the name given for the column and the value will be the value in the 
 column. This processor returns all doubles that can be parsed by 
Double.parseDouble(String)
 including zeros, and so will emit zero valued features.
 Returns an empty list if the value failed to parse or was empty.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.tribuo.data.columnar.FieldProcessorFieldProcessor.GeneratedFeatureType
- 
Field SummaryFields inherited from interface org.tribuo.data.columnar.FieldProcessorNAMESPACE
- 
Constructor SummaryConstructorsConstructorDescriptionDoubleFieldProcessor(String fieldName) Constructs a field processor which extracts a single double valued feature from the specified field name.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a copy of this FieldProcessor bound to the supplied newFieldName.Returns the feature type this FieldProcessor generates.Gets the field name this FieldProcessor uses.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenanceProcesses the field value and generates a (possibly empty) list ofColumnarFeatures.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.ConfigurablepostConfigMethods inherited from interface org.tribuo.data.columnar.FieldProcessorgetNumNamespaces
- 
Constructor Details- 
DoubleFieldProcessorConstructs a field processor which extracts a single double valued feature from the specified field name.- Parameters:
- fieldName- The field name to read.
 
 
- 
- 
Method Details- 
getFieldNameDescription copied from interface:FieldProcessorGets the field name this FieldProcessor uses.- Specified by:
- getFieldNamein interface- FieldProcessor
- Returns:
- The field name.
 
- 
processDescription copied from interface:FieldProcessorProcesses the field value and generates a (possibly empty) list ofColumnarFeatures.- Specified by:
- processin interface- FieldProcessor
- Parameters:
- value- The field value to process.
- Returns:
- A list of ColumnarFeatures.
 
- 
getFeatureTypeDescription copied from interface:FieldProcessorReturns the feature type this FieldProcessor generates.- Specified by:
- getFeatureTypein interface- FieldProcessor
- Returns:
- The feature type.
 
- 
copyDescription copied from interface:FieldProcessorReturns a copy of this FieldProcessor bound to the supplied newFieldName.- Specified by:
- copyin interface- FieldProcessor
- Parameters:
- newFieldName- The new field name for the copy.
- Returns:
- A copy of this FieldProcessor.
 
- 
toString
- 
getProvenancepublic com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
- getProvenancein interface- com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
 
 
-