Package com.datarobot

Interface IPredictionClient

    • 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)
      • deploymentPredict

        PredictionList deploymentPredict​(Deployment deployment,
                                         java.lang.String sourceFile)
                                  throws ClientException,
                                         java.io.FileNotFoundException
        Send a prediction request to the specified deployment
        Parameters:
        deployment - Who will service the request
        sourceFile - 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.