Class MlColocatedPredictionJob<I extends org.gridgain.ml.model.MlColocatedJobParameters,O>

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

public class MlColocatedPredictionJob<I extends org.gridgain.ml.model.MlColocatedJobParameters,O> extends org.gridgain.ml.compute.MlComputeJob<I,O>
Compute job for simple ML predictions using ML_EMBEDDED executor. This job takes MlColocatedJobParameters and returns the raw prediction result.
  • Constructor Details

    • MlColocatedPredictionJob

      public MlColocatedPredictionJob()
  • Method Details

    • jobClass

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

      public CompletableFuture<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.MlColocatedJobParameters,O>
    • resultMarshaller

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