public class DefaultFeatureExtractor extends Object implements LabelFeatureExtractor
The options are: the most recent output, the least recent output, recent bigrams, recent trigrams, recent 4-grams.
Constructor and Description |
---|
DefaultFeatureExtractor() |
DefaultFeatureExtractor(int mostRecentOutcome,
int leastRecentOutcome,
boolean useBigram,
boolean useTrigram,
boolean use4gram) |
Modifier and Type | Method and Description |
---|---|
List<Feature> |
extractFeatures(List<Label> previousOutcomes,
double value)
Generates features based on the previously produced labels.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
String |
toString() |
public DefaultFeatureExtractor()
public DefaultFeatureExtractor(int mostRecentOutcome, int leastRecentOutcome, boolean useBigram, boolean useTrigram, boolean use4gram)
public List<Feature> extractFeatures(List<Label> previousOutcomes, double value)
LabelFeatureExtractor
extractFeatures
in interface LabelFeatureExtractor
previousOutcomes
- The previous step's labels.value
- The value to give to the features.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.