Package com.datarobot
Interface IAIClient
-
- All Known Implementing Classes:
AIClient
public interface IAIClient
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDataset(java.lang.String aiId, java.lang.String datasetId)Add aDatasetto the AIvoidaddLearningSession(java.lang.String aiId, java.lang.String learningSessionId, java.lang.String outputName)Add aLearningSessionto the AIvoidaddOutput(java.lang.String aiId, java.lang.String learningSessionId, java.lang.String outputName)Add anOutputto the AIAIcreateAI(java.lang.String name)Create an AI with the given namevoiddelete(java.lang.String aiId)Delete an AIAIget(java.lang.String id)Retrieve an AIAction<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse>getHttpMessageTransformer()LearningSessionListgetLearningSessions(java.lang.String aiId)Retrieve a list of all learning sessions associated with an AILearningSessionListgetLearningSessions(java.lang.String aiId, PagingParams params)Retrieve a list of all learning sessions associated with an AIOutputgetOutput(java.lang.String aiId, java.lang.String outputTarget)Retrieve theOutputassociated with an AI and targetOutputFeaturesgetOutputFeatures(java.lang.String aiId, java.lang.String outputTarget)Retrieve features of an output associated with an AI and a targetOutputListgetOutputs(java.lang.String aiId)Retrieve a list of all outputs associated with an AI.OutputListgetOutputs(java.lang.String aiId, PagingParams params)Retrieve a list of all outputs associated with an AI.PredictionListinfer(java.lang.String aiId, java.lang.String target, java.lang.String filePath)Make predictions on an AI, target and dataset.AIListlist()Retrieve a list of all AIs associated with this accountAIListlist(PagingParams params)Retrieve a list of all AIs associated with this accountPredictionListpredict(java.lang.String aiId, java.lang.String target, java.lang.String filePath)Make predictions on an AI, target and dataset.voidsetHttpMessageTransformer(Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> httpMessageTransformer)
-
-
-
Method Detail
-
getHttpMessageTransformer
Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> getHttpMessageTransformer()
-
setHttpMessageTransformer
void setHttpMessageTransformer(Action<com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse> httpMessageTransformer)
-
get
AI get(java.lang.String id) throws ClientException
Retrieve an AI- Parameters:
id- The ID of the AI to retrieve- Returns:
- The queried
AI - Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
list
AIList list() throws ClientException
Retrieve a list of all AIs associated with this account- Returns:
AIList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
list
AIList list(PagingParams params) throws ClientException
Retrieve a list of all AIs associated with this account- Parameters:
params- ThePagingParamsobject for this list- Returns:
AIList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
createAI
AI createAI(java.lang.String name) throws ClientException, java.lang.InterruptedException
Create an AI with the given name- Parameters:
name- The name of the AI- Returns:
- The new
AI - Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.java.lang.InterruptedException- when a thread is waiting, sleeping, or otherwise occupied, and the thread is interrupted, either before or during the activity.
-
delete
void delete(java.lang.String aiId) throws ClientExceptionDelete an AI- Parameters:
aiId- The ID of the AI to delete- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
addLearningSession
void addLearningSession(java.lang.String aiId, java.lang.String learningSessionId, java.lang.String outputName) throws ClientExceptionAdd aLearningSessionto the AI- Parameters:
aiId- The ID of the AI to which you want to add the learning sessionlearningSessionId- The ID of the learning session to addoutputName- Name of the output this AI will learn- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
addDataset
void addDataset(java.lang.String aiId, java.lang.String datasetId) throws ClientExceptionAdd aDatasetto the AI- Parameters:
aiId- The ID of the AI to which you want to add the datasetdatasetId- The ID of the dataset to add- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
getLearningSessions
LearningSessionList getLearningSessions(java.lang.String aiId) throws ClientException
Retrieve a list of all learning sessions associated with an AI- Parameters:
aiId- The ID of the AI to retrieve learning sessions for- Returns:
LearningSessionList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
getLearningSessions
LearningSessionList getLearningSessions(java.lang.String aiId, PagingParams params) throws ClientException
Retrieve a list of all learning sessions associated with an AI- Parameters:
aiId- The ID of the AI to retrieve learning sessions forparams- ThePagingParamsobject for this list- Returns:
LearningSessionList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
getOutput
Output getOutput(java.lang.String aiId, java.lang.String outputTarget) throws ClientException
Retrieve theOutputassociated with an AI and target- Parameters:
aiId- The ID of the AI to retrieve an output foroutputTarget- The target of this output- Returns:
Output- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
predict
PredictionList predict(java.lang.String aiId, java.lang.String target, java.lang.String filePath) throws ClientException, java.io.FileNotFoundException
Make predictions on an AI, target and dataset. Note an AI must be trained withAI.learn(java.lang.String, java.lang.String)or an existing learning session must be added to the AI withAI.addLearningSession(com.datarobot.model.LearningSession)oraddLearningSession(java.lang.String, java.lang.String, java.lang.String)before predictions can occur.- Parameters:
aiId- The ID of the AI to retrieve predictions fortarget- The name of the selected target feature to predict onfilePath- The data on which to predict via a filepath on the local system- Returns:
PredictionList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.java.io.FileNotFoundException- when a file with the specified pathname does not exist, or if the file does exist but is inaccessible for some reason.
-
infer
PredictionList infer(java.lang.String aiId, java.lang.String target, java.lang.String filePath) throws ClientException, java.io.FileNotFoundException
Make predictions on an AI, target and dataset. Note an AI must be trained withAI.learn(java.lang.String, java.lang.String)or an existing learning session must be added to the AI withAI.addLearningSession(com.datarobot.model.LearningSession)oraddLearningSession(java.lang.String, java.lang.String, java.lang.String)before predictions can occur.- Parameters:
aiId- The ID of the AI to retrieve predictions fortarget- The name of the selected target feature to predict onfilePath- The data on which to predict via a filepath on the local system- Returns:
PredictionList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.java.io.FileNotFoundException- when a file with the specified pathname does not exist, or if the file does exist but is inaccessible for some reason.
-
getOutputs
OutputList getOutputs(java.lang.String aiId) throws ClientException
Retrieve a list of all outputs associated with an AI.- Parameters:
aiId- The ID of the AI to retrieve outputs for- Returns:
OutputList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
getOutputs
OutputList getOutputs(java.lang.String aiId, PagingParams params) throws ClientException
Retrieve a list of all outputs associated with an AI.- Parameters:
aiId- The ID of the AI to retrieve outputs forparams- ThePagingParamsobject for this list- Returns:
OutputList- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
addOutput
void addOutput(java.lang.String aiId, java.lang.String learningSessionId, java.lang.String outputName) throws ClientExceptionAdd anOutputto the AI- Parameters:
aiId- The ID of the AI to which you want to add the datasetlearningSessionId- The ID of the learning sessionoutputName- The name of the output- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
getOutputFeatures
OutputFeatures getOutputFeatures(java.lang.String aiId, java.lang.String outputTarget) throws ClientException
Retrieve features of an output associated with an AI and a target- Parameters:
aiId- The ID of the AI to retrieve output features foroutputTarget- The target of this output- Returns:
OutputFeatures- Throws:
ClientException- when 4xx or 5xx response is received from server, or errors in parsing the response.
-
-