Package org.gridgain.ml
Interface IgniteMl
public interface IgniteMl
Main API for machine learning inference operations in GridGain.
-
Method Summary
Modifier and TypeMethodDescription<I,O> List<O> batchPredict(MlBatchJobParameters<I> jobParams) Executes batch prediction using the provided model and input data synchronously.<I,O> CompletableFuture<List<O>> batchPredictAsync(MlBatchJobParameters<I> jobParams) Executes batch prediction using the provided model and input data asynchronously.<I,O> O predict(MlSimpleJobParameters<I> jobParams) Executes prediction using the provided model and input data synchronously.<I,O> CompletableFuture<O> predictAsync(MlSimpleJobParameters<I> jobParams) Executes prediction using the provided model and input data asynchronously.<I,O> O predictColocated(MlColocatedJobParameters<I> jobParams) Executes Colocated prediction by providing key and input columns to run inference on results synchronously.<I,O> CompletableFuture<O> predictColocatedAsync(MlColocatedJobParameters<I> jobParams) Executes Colocated prediction by providing key and input columns to run inference on results asynchronously.<O> List<O>predictFromSql(MlSqlJobParameters jobParams) Executes SQL-based prediction by running the query and performing inference on results.<O> CompletableFuture<List<O>>predictFromSqlAsync(MlSqlJobParameters jobParams) Executes SQL-based prediction by running the query and performing inference on results asynchronously.
-
Method Details
-
predict
Executes prediction using the provided model and input data synchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info and input data- Returns:
- The prediction result
-
predictAsync
Executes prediction using the provided model and input data asynchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info and input data- Returns:
- A CompletableFuture containing the prediction result
-
batchPredict
Executes batch prediction using the provided model and input data synchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info and batch input data- Returns:
- List of prediction results
-
batchPredictAsync
Executes batch prediction using the provided model and input data asynchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info and batch input data- Returns:
- A CompletableFuture containing a list of prediction results
-
predictFromSql
Executes SQL-based prediction by running the query and performing inference on results. The SQL query should return the data to be used for prediction.- Type Parameters:
O- The output type- Parameters:
jobParams- The job parameters containing model info, SQL query, and parameters- Returns:
- List of prediction results from SQL query data
-
predictFromSqlAsync
Executes SQL-based prediction by running the query and performing inference on results asynchronously. The SQL query returns the data to be used for prediction.- Type Parameters:
O- The output type- Parameters:
jobParams- The job parameters containing model info, SQL query, and parameters- Returns:
- A CompletableFuture containing a list of prediction results from SQL query data
-
predictColocated
Executes Colocated prediction by providing key and input columns to run inference on results synchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info, table, key column, and the key- Returns:
- A CompletableFuture containing the prediction result
-
predictColocatedAsync
Executes Colocated prediction by providing key and input columns to run inference on results asynchronously.- Type Parameters:
I- The input typeO- The output type- Parameters:
jobParams- The job parameters containing model info, table, key column, and the key- Returns:
- A CompletableFuture containing the prediction result
-