Interface AIService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
@RemoteServiceRelativePath("ai")
public interface AIService
extends com.google.gwt.user.client.rpc.RemoteService
The client side stub for the Artificial Intelligence Service. This service
gives all needed methods to handle AI models and samplers.
- Since:
- 9.2
- Author:
- Marco Meschieri - LogicalDOC
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncloneModel
(long modelId, String newName) Clones a modelvoid
deleteModels
(List<Long> modelIds) Deletes a a set of modelsvoid
deleteSamplers
(List<Long> samplerIds) Deletes some samplersvoid
evaluateModel
(long modelId) Evaluated a neural network modelgetModel
(long modelId) Retrieves a model from the data layerRetrieves all the modelsgetSampler
(long samplerId) Retrieves a sampler from the data layerLoads the statistics from of the AIimportModel
(String modelName) Imports a new modelRuns a model and gets the predictionCreates or updates a modelsaveSampler
(GUISampler sampler) Creates or updates a samplervoid
trainModel
(long modelId) Trains a model
-
Method Details
-
deleteSamplers
Deletes some samplers- Parameters:
samplerIds
- identifiers of the samplers- Throws:
ServerException
- an error happened in the server application
-
saveSampler
Creates or updates a sampler- Parameters:
sampler
- the sampler to save- Returns:
- the saved sampler
- Throws:
ServerException
- an error happened in the server application
-
getSampler
Retrieves a sampler from the data layer- Parameters:
samplerId
- identifier of the sampler- Returns:
- the sampler
- Throws:
ServerException
- an error happened in the server application
-
deleteModels
Deletes a a set of models- Parameters:
modelIds
- identifiers of the models to delete- Throws:
ServerException
- an error happened in the server application
-
saveModel
Creates or updates a model- Parameters:
model
- the model to save- Returns:
- the saved model
- Throws:
ServerException
- an error happened in the server application
-
getModel
Retrieves a model from the data layer- Parameters:
modelId
- identifier of the model- Returns:
- the model
- Throws:
ServerException
- an error happened in the server application
-
getModels
Retrieves all the models- Returns:
- the list of models
- Throws:
ServerException
- an error happened in the server application
-
trainModel
Trains a model- Parameters:
modelId
- identifier of the model to train- Throws:
ServerException
- an error happened in the server application
-
evaluateModel
Evaluated a neural network model- Parameters:
modelId
- identifier of the neural network model to evaluate- Throws:
ServerException
- an error happened in the server application
-
query
Runs a model and gets the prediction- Parameters:
modelId
- identifier of the modelfeatures
- ordered list of feature values- Returns:
- the list of predictions ordered by descending score
- Throws:
ServerException
- an error happened in the server application
-
importModel
Imports a new model- Parameters:
modelName
- Name to give to the new imported model- Returns:
- The created model
- Throws:
ServerException
- an error happened in the server application
-
cloneModel
Clones a model- Parameters:
modelId
- Identifier of the model to clonenewName
- The name to give to the clone- Returns:
- The clone
- Throws:
ServerException
- an error happened in the server application
-
getStats
Loads the statistics from of the AI- Parameters:
modelId
- Optional indentifier of the modeltenantId
- Optional indentifier of the tenant- Returns:
- all the stats
- Throws:
ServerException
- an error happened in the server application
-