public class TransformationMap extends Object implements com.oracle.labs.mlrg.olcut.config.Configurable, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Dataset
.
Feature specific transformations are specified using a regex. If multiple
regexes match a given feature, then an IllegalArgumentException
is thrown
when Dataset.createTransformers(TransformationMap)
is called.
Global transformations are applied after all feature specific transformations.
Transformations only operate on observed values. To operate on implicit zeros then
first call MutableDataset.densify()
on the datasets.
See org.tribuo.transform
for a more detailed discussion of densify.
Modifier and Type | Class and Description |
---|---|
static class |
TransformationMap.TransformationList
A carrier type as OLCUT does not support nested generics.
|
Constructor and Description |
---|
TransformationMap(List<Transformation> globalTransformations) |
TransformationMap(List<Transformation> globalTransformations,
Map<String,List<Transformation>> featureTransformations) |
TransformationMap(Map<String,List<Transformation>> featureTransformations) |
Modifier and Type | Method and Description |
---|---|
Map<String,List<Transformation>> |
getFeatureTransformations()
Gets the map of feature specific transformations.
|
List<Transformation> |
getGlobalTransformations()
Gets the global transformations in this TransformationMap.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
void |
postConfig()
Used by the OLCUT configuration system, and should not be called by external code.
|
String |
toString() |
boolean |
validateTransformations(FeatureMap featureMap)
Checks that a given transformation set doesn't have conflicts when applied to the supplied featureMap.
|
public TransformationMap(List<Transformation> globalTransformations, Map<String,List<Transformation>> featureTransformations)
public TransformationMap(List<Transformation> globalTransformations)
public TransformationMap(Map<String,List<Transformation>> featureTransformations)
public void postConfig()
postConfig
in interface com.oracle.labs.mlrg.olcut.config.Configurable
public boolean validateTransformations(FeatureMap featureMap)
featureMap
- The featureMap to check.public List<Transformation> getGlobalTransformations()
public Map<String,List<Transformation>> getFeatureTransformations()
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.