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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptioncloneModel(long modelId, String newName) Clones a modelvoiddeleteModels(List<Long> modelIds) Deletes a a set of modelsvoiddeleteSamplers(List<Long> samplerIds) Deletes some samplersvoidevaluateModel(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 samplervoidtrainModel(long modelId) Trains a model
- 
Method Details- 
deleteSamplersDeletes some samplers- Parameters:
- samplerIds- identifiers of the samplers
- Throws:
- ServerException- an error happened in the server application
 
- 
saveSamplerCreates or updates a sampler- Parameters:
- sampler- the sampler to save
- Returns:
- the saved sampler
- Throws:
- ServerException- an error happened in the server application
 
- 
getSamplerRetrieves a sampler from the data layer- Parameters:
- samplerId- identifier of the sampler
- Returns:
- the sampler
- Throws:
- ServerException- an error happened in the server application
 
- 
deleteModelsDeletes a a set of models- Parameters:
- modelIds- identifiers of the models to delete
- Throws:
- ServerException- an error happened in the server application
 
- 
saveModelCreates or updates a model- Parameters:
- model- the model to save
- Returns:
- the saved model
- Throws:
- ServerException- an error happened in the server application
 
- 
getModelRetrieves a model from the data layer- Parameters:
- modelId- identifier of the model
- Returns:
- the model
- Throws:
- ServerException- an error happened in the server application
 
- 
getModelsRetrieves all the models- Returns:
- the list of models
- Throws:
- ServerException- an error happened in the server application
 
- 
trainModelTrains a model- Parameters:
- modelId- identifier of the model to train
- Throws:
- ServerException- an error happened in the server application
 
- 
evaluateModelEvaluated a neural network model- Parameters:
- modelId- identifier of the neural network model to evaluate
- Throws:
- ServerException- an error happened in the server application
 
- 
queryRuns a model and gets the prediction- Parameters:
- modelId- identifier of the model
- features- ordered list of feature values
- Returns:
- the list of predictions ordered by descending score
- Throws:
- ServerException- an error happened in the server application
 
- 
importModelImports 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
 
- 
cloneModelClones a model- Parameters:
- modelId- Identifier of the model to clone
- newName- The name to give to the clone
- Returns:
- The clone
- Throws:
- ServerException- an error happened in the server application
 
- 
getStatsLoads the statistics from of the AI- Parameters:
- modelId- Optional indentifier of the model
- tenantId- Optional indentifier of the tenant
- Returns:
- all the stats
- Throws:
- ServerException- an error happened in the server application
 
 
-