Class Prediction<InputT,​ValueT>

  • All Implemented Interfaces:
    Serializable

    public abstract class Prediction<InputT,​ValueT>
    extends Object
    implements Serializable
    Value class for prediction result. Holds both the original input and the result of the prediction for the input.
    See Also:
    Serialized Form
    • Constructor Detail

      • Prediction

        public Prediction()
    • Method Detail

      • input

        public abstract InputT input()
        Input to the prediction.
      • value

        public abstract ValueT value()
        Result of the prediction.
      • create

        public static <InputT,​ValueT> Prediction<InputT,​ValueT> create​(InputT input,
                                                                                   ValueT value)
        Create a new prediction result.