Class MlBatchPredictionJob<I extends org.gridgain.ml.model.MlBatchJobParameters,O>

java.lang.Object
org.gridgain.ml.compute.MlComputeJob<I,List<O>>
org.gridgain.internal.ml.compute.MlBatchPredictionJob<I,O>
All Implemented Interfaces:
org.apache.ignite.compute.ComputeJob<I,List<O>>

public class MlBatchPredictionJob<I extends org.gridgain.ml.model.MlBatchJobParameters,O> extends org.gridgain.ml.compute.MlComputeJob<I,List<O>>
Compute job for batch ML predictions using ML_EMBEDDED executor. This job takes MlBatchJobParameters and returns a list of raw prediction results.
  • Constructor Details

    • MlBatchPredictionJob

      public MlBatchPredictionJob()
  • Method Details

    • jobClass

      public static <I extends org.gridgain.ml.model.MlBatchJobParameters, O> Class<? extends org.apache.ignite.compute.ComputeJob<I,List<O>>> jobClass()
    • predictAsync

      public CompletableFuture<List<O>> predictAsync(org.apache.ignite.compute.JobExecutionContext context, @Nullable I arg)
      Specified by:
      predictAsync in class org.gridgain.ml.compute.MlComputeJob<I extends org.gridgain.ml.model.MlBatchJobParameters,List<O>>
    • resultMarshaller

      @Nullable public @Nullable org.apache.ignite.marshalling.Marshaller<List<O>,byte[]> resultMarshaller()