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.

  • 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

      static Transformer deserialize(org.tribuo.protos.core.TransformerProto proto)
      Deserializes a TransformerProto into a Transformer subclass.
      Parameters:
      proto - The proto to deserialize.
      Returns:
      The deserialized FeatureMap.