Package xyz.euclia.jaqpotj
Interface Jaqpot
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
JaqpotImplementation
public interface Jaqpot extends Closeable
- Author:
- pantelispanka
-
Method Summary
Modifier and Type Method Description Future<Dataset>GetDatasetById(String datasetId, String token)Get a datasetFuture<Feature>GetFeatureById(String featId, String token)Get a feature by it's idFuture<Model>GetModelById(String id, String token)Get a model by it's idpFuture<Models>GetOrgsModels(String orgId, Number start, Number max, String token)Get an organizations modelsFuture<Models>GetOrgsTagModels(String orgId, String tag, Number start, Number max, String token)Get an organizations models by tagFuture<Models>GetUsersModels(Number start, Number max, String token)Get the users modelsFuture<Prediction>Predict(String modelId, List<Map<String,Object>> data, String token)Get a dataset
-
Method Details
-
GetModelById
Get a model by it's idp- Parameters:
id- is the models id- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
GetUsersModels
Get the users models- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
GetOrgsModels
Future<Models> GetOrgsModels(String orgId, Number start, Number max, String token) throws JaqpotExceptionGet an organizations models- Parameters:
orgId- is the organizations id- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
GetOrgsTagModels
Future<Models> GetOrgsTagModels(String orgId, String tag, Number start, Number max, String token) throws JaqpotExceptionGet an organizations models by tag- Parameters:
orgId- is the organizations idtag- is a tag- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
GetFeatureById
Get a feature by it's id- Parameters:
featId- is the organizations i- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
GetDatasetById
Get a dataset- Parameters:
datasetId- is the dataset's id- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotException
-
Predict
Future<Prediction> Predict(String modelId, List<Map<String,Object>> data, String token) throws JaqpotException, ExecutionException, InterruptedExceptionGet a dataset- Parameters:
modelId- is the models iddata- is a Map with keys the feature names and Object the data values- Returns:
- Future Response get the response when finished. If 200 status you get the model. Other you get an ErrorReport.
- Throws:
JaqpotExceptionExecutionExceptionInterruptedException
-