Package org.tribuo.transform
Interface Transformer
- All Superinterfaces:
ProtoSerializable<org.tribuo.protos.core.TransformerProto>
,Serializable
- All Known Implementing Classes:
BinningTransformation.BinningTransformer
,SimpleTransform
public interface Transformer
extends ProtoSerializable<org.tribuo.protos.core.TransformerProto>, Serializable
A fitted
Transformation
which can apply
a transform to the input value. Usually contains
feature specific information from the training data.
Transformers are serializable, and should only
be constructed by their TransformStatistics
.
-
Field Summary
Fields inherited from interface org.tribuo.protos.ProtoSerializable
DESERIALIZATION_METHOD_NAME, PROVENANCE_SERIALIZER
-
Method Summary
Modifier and TypeMethodDescriptionstatic Transformer
deserialize
(org.tribuo.protos.core.TransformerProto proto) Deserializes aTransformerProto
into aTransformer
subclass.double
transform
(double input) Applies the transformation to the supplied input value.Methods inherited from interface org.tribuo.protos.ProtoSerializable
serialize
-
Method Details
-
transform
double transform(double input) Applies the transformation to the supplied input value.- Parameters:
input
- The value to transform.- Returns:
- The transformed value.
-
deserialize
Deserializes aTransformerProto
into aTransformer
subclass.- Parameters:
proto
- The proto to deserialize.- Returns:
- The deserialized FeatureMap.
-