Interface LabelFeatureExtractor
- All Superinterfaces:
com.oracle.labs.mlrg.olcut.config.Configurable
,ProtoSerializable<org.tribuo.classification.protos.LabelFeatureExtractorProto>
,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
,Serializable
- All Known Implementing Classes:
DefaultFeatureExtractor
,NoopFeatureExtractor
public interface LabelFeatureExtractor
extends com.oracle.labs.mlrg.olcut.config.Configurable, ProtoSerializable<org.tribuo.classification.protos.LabelFeatureExtractorProto>, com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>, Serializable
A class for featurising labels from previous steps in Viterbi.
-
Field Summary
Fields inherited from interface org.tribuo.protos.ProtoSerializable
DESERIALIZATION_METHOD_NAME, PROVENANCE_SERIALIZER
-
Method Summary
Modifier and TypeMethodDescriptionstatic LabelFeatureExtractor
deserialize
(org.tribuo.classification.protos.LabelFeatureExtractorProto proto) Deserializes the LabelFeatureExtractor from the supplied protobuf.extractFeatures
(List<Label> previousOutcomes, double value) Generates features based on the previously produced labels.Methods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
Methods inherited from interface org.tribuo.protos.ProtoSerializable
serialize
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable
getProvenance
-
Method Details
-
extractFeatures
Generates features based on the previously produced labels.- Parameters:
previousOutcomes
- The previous step's labels.value
- The value to give to the features.- Returns:
- Features.
-
deserialize
static LabelFeatureExtractor deserialize(org.tribuo.classification.protos.LabelFeatureExtractorProto proto) Deserializes the LabelFeatureExtractor from the supplied protobuf.- Parameters:
proto
- The protobuf to deserialize.- Returns:
- The label feature extractor.
-