Package org.gridgain.internal.ml.compute
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends org.gridgain.ml.model.MlColocatedJobParameters,O>
Class<? extends org.apache.ignite.compute.ComputeJob<I,O>> jobClass()predictAsync(org.apache.ignite.compute.JobExecutionContext context, I arg) @Nullable org.apache.ignite.marshalling.Marshaller<O,byte[]> Methods inherited from class org.gridgain.ml.compute.MlComputeJob
executeAsync, inputMarshaller, updateModelPathFromDeploymentUnits
-
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) -
resultMarshaller
-