Class PredictionResult<InputT,OutputT>
- java.lang.Object
-
- org.apache.beam.sdk.ml.inference.remote.PredictionResult<InputT,OutputT>
-
- All Implemented Interfaces:
java.io.Serializable
public class PredictionResult<InputT,OutputT> extends java.lang.Object implements java.io.SerializablePairs 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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <InputT,OutputT>
PredictionResult<InputT,OutputT>create(InputT input, OutputT output)InputTgetInput()OutputTgetOutput()
-
-
-
Method Detail
-
getInput
public InputT getInput()
-
getOutput
public OutputT getOutput()
-
create
public static <InputT,OutputT> PredictionResult<InputT,OutputT> create(InputT input, OutputT output)
-
-