Class PredictionResult<InputT,OutputT>

java.lang.Object
org.apache.beam.sdk.ml.inference.remote.PredictionResult<InputT,OutputT>
All Implemented Interfaces:
Serializable

public class PredictionResult<InputT,OutputT> extends Object implements Serializable
Pairs an input with its corresponding inference output.

This class maintains the association between input data and its model's results for Downstream processing

See Also:
  • Method Details

    • getInput

      public InputT getInput()
    • getOutput

      public OutputT getOutput()
    • create

      public static <InputT, OutputT> PredictionResult<InputT,OutputT> create(InputT input, OutputT output)