Package com.datarobot

Interface ILearningSessionClient

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

        void delete​(java.lang.String id)
             throws ClientException
        Delete a learning session
        Parameters:
        id - The ID of the learning session to delete
        Throws:
        ClientException - when 4xx or 5xx response is received from server, or errors in parsing the response.
      • learn

        StatusTask<LearningSession> learn​(java.lang.String datasetId,
                                          java.lang.String target)
                                   throws ClientException
        Create a learning session and wait for it to be able to predict
        Parameters:
        datasetId - The ID of the dataset to learn on
        target - The name of the feature from the dataset to learn how to predict
        Returns:
        The new LearningSession
        Throws:
        ClientException - when 4xx or 5xx response is received from server, or errors in parsing the response.
      • startLearn

        java.util.concurrent.Future<LearningSession> startLearn​(java.lang.String datasetId,
                                                                java.lang.String target)
                                                         throws ClientException
        Set up a learning session without waiting for it to be ready. To block until this process finishes, use learn(java.lang.String, java.lang.String) instead or call .get() on the return Future<LearningSession>.
        Parameters:
        datasetId - The ID of the dataset to learn on
        target - The name of the feature from the dataset to learn how to predict
        Returns:
        The new FutureLearningSession
        Throws:
        ClientException - when 4xx or 5xx response is received from server, or errors in parsing the response.
      • getEvaluation

        Evaluation getEvaluation​(java.lang.String learningSessionId)
                          throws ClientException
        Get performance information for the given learning session. For details on how to interpret this information see the learning session documentation.
        Parameters:
        learningSessionId - The ID of the learning session
        Returns:
        Evaluation
        Throws:
        ClientException - when 4xx or 5xx response is received from server, or errors in parsing the response.