Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
 package com.amazonaws.services.machinelearning.model;
 
 
Container for the parameters to the CreateEvaluation operation.

Creates a new Evaluation of an MLModel . An MLModel is evaluated on a set of observations associated to a DataSource . Like a DataSource for an MLModel , the DataSource for an Evaluation contains values for the Target Variable. The Evaluation compares the predicted result for each observation to the actual outcome and provides a summary so that you know how effective the MLModel functions on the test data. Evaluation generates a relevant performance metric such as BinaryAUC, RegressionRMSE or MulticlassAvgFScore based on the corresponding MLModelType : BINARY , REGRESSION or MULTICLASS .

CreateEvaluation is an asynchronous operation. In response to CreateEvaluation , Amazon Machine Learning (Amazon ML) immediately returns and sets the evaluation status to PENDING . After the Evaluation is created and ready for use, Amazon ML sets the status to COMPLETED .

You can use the GetEvaluation operation to check progress of the evaluation during the creation operation.

 
 public class CreateEvaluationRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
A user-supplied ID that uniquely identifies the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

 
     private String evaluationId;

    
A user-supplied name or description of the Evaluation.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

 
     private String evaluationName;

    
The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

 
     private String mLModelId;

    
The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

 
     private String evaluationDataSourceId;

    
A user-supplied ID that uniquely identifies the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Returns:
A user-supplied ID that uniquely identifies the Evaluation.
    public String getEvaluationId() {
        return ;
    }
    
    
A user-supplied ID that uniquely identifies the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
evaluationId A user-supplied ID that uniquely identifies the Evaluation.
    public void setEvaluationId(String evaluationId) {
        this. = evaluationId;
    }
    
    
A user-supplied ID that uniquely identifies the Evaluation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
evaluationId A user-supplied ID that uniquely identifies the Evaluation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateEvaluationRequest withEvaluationId(String evaluationId) {
        this. = evaluationId;
        return this;
    }

    
A user-supplied name or description of the Evaluation.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Returns:
A user-supplied name or description of the Evaluation.
    public String getEvaluationName() {
        return ;
    }
    
    
A user-supplied name or description of the Evaluation.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
evaluationName A user-supplied name or description of the Evaluation.
    public void setEvaluationName(String evaluationName) {
        this. = evaluationName;
    }
    
    
A user-supplied name or description of the Evaluation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024
Pattern: .*\S.*|^$

Parameters:
evaluationName A user-supplied name or description of the Evaluation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateEvaluationRequest withEvaluationName(String evaluationName) {
        this. = evaluationName;
        return this;
    }

    
The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Returns:
The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

    public String getMLModelId() {
        return ;
    }
    
    
The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
mLModelId The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

    public void setMLModelId(String mLModelId) {
        this. = mLModelId;
    }
    
    
The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
mLModelId The ID of the MLModel to evaluate.

The schema used in creating the MLModel must match the schema of the DataSource used in the Evaluation.

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateEvaluationRequest withMLModelId(String mLModelId) {
        this. = mLModelId;
        return this;
    }

    
The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Returns:
The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.
    public String getEvaluationDataSourceId() {
        return ;
    }
    
    
The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
evaluationDataSourceId The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.
    public void setEvaluationDataSourceId(String evaluationDataSourceId) {
        this. = evaluationDataSourceId;
    }
    
    
The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_.-]+

Parameters:
evaluationDataSourceId The ID of the DataSource for the evaluation. The schema of the DataSource must match the schema used to create the MLModel.
Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateEvaluationRequest withEvaluationDataSourceId(String evaluationDataSourceId) {
        this. = evaluationDataSourceId;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getEvaluationId() != nullsb.append("EvaluationId: " + getEvaluationId() + ",");
        if (getEvaluationName() != nullsb.append("EvaluationName: " + getEvaluationName() + ",");
        if (getMLModelId() != nullsb.append("MLModelId: " + getMLModelId() + ",");
        if (getEvaluationDataSourceId() != nullsb.append("EvaluationDataSourceId: " + getEvaluationDataSourceId() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getEvaluationId() == null) ? 0 : getEvaluationId().hashCode()); 
        hashCode = prime * hashCode + ((getEvaluationName() == null) ? 0 : getEvaluationName().hashCode()); 
        hashCode = prime * hashCode + ((getMLModelId() == null) ? 0 : getMLModelId().hashCode()); 
        hashCode = prime * hashCode + ((getEvaluationDataSourceId() == null) ? 0 : getEvaluationDataSourceId().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CreateEvaluationRequest == falsereturn false;
        CreateEvaluationRequest other = (CreateEvaluationRequest)obj;
        
        if (other.getEvaluationId() == null ^ this.getEvaluationId() == nullreturn false;
        if (other.getEvaluationId() != null && other.getEvaluationId().equals(this.getEvaluationId()) == falsereturn false
        if (other.getEvaluationName() == null ^ this.getEvaluationName() == nullreturn false;
        if (other.getEvaluationName() != null && other.getEvaluationName().equals(this.getEvaluationName()) == falsereturn false
        if (other.getMLModelId() == null ^ this.getMLModelId() == nullreturn false;
        if (other.getMLModelId() != null && other.getMLModelId().equals(this.getMLModelId()) == falsereturn false
        if (other.getEvaluationDataSourceId() == null ^ this.getEvaluationDataSourceId() == nullreturn false;
        if (other.getEvaluationDataSourceId() != null && other.getEvaluationDataSourceId().equals(this.getEvaluationDataSourceId()) == falsereturn false
        return true;
    }
    
    @Override
    public CreateEvaluationRequest clone() {
        
            return (CreateEvaluationRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X