Skip to main content

evaluations

Creates, updates, deletes, gets or lists an evaluations resource.

Overview

Nameevaluations
TypeResource
Idaws.machinelearning.evaluations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
compute_timeinteger (int64)Long integer type that is a 64-bit signed number.
created_atstring (date-time)A timestamp represented in epoch time.
created_by_iam_userstringThe AWS user account that invoked the evaluation. The account type can be either an AWS root account or an AWS Identity and Access Management (IAM) user account. (pattern: <code>arn:aws:iam::[0-9]+:((user/.+)|(root))</code>)
evaluation_data_source_idstringThe DataSource used for this evaluation. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
evaluation_idstringThe evaluation ID which is same as the EvaluationId in the request. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
finished_atstring (date-time)A timestamp represented in epoch time.
input_data_location_s3stringThe location of the data file or directory in Amazon Simple Storage Service (Amazon S3). (pattern: <code>s3:​//([^/]+)(/.*)?</code>)
last_updated_atstring (date-time)A timestamp represented in epoch time.
log_uristringA link to the file that contains logs of the CreateEvaluation operation.
ml_model_idstringThe ID of the MLModel that was the focus of the evaluation. (pattern: <code>[a-zA-Z0-9_.-]+</code>)
messagestringA description of the most recent details about evaluating the MLModel.
namestringA user-supplied name or description of the Evaluation. (pattern: <code>.\S.|^$</code>)
performance_metricsobjectMeasurements of how well the MLModel performed using observations referenced by the DataSource. One of the following metric is returned based on the type of the MLModel: BinaryAUC: A binary MLModel uses the Area Under the Curve (AUC) technique to measure performance. RegressionRMSE: A regression MLModel uses the Root Mean Square Error (RMSE) technique to measure performance. RMSE measures the difference between predicted and actual values for a single variable. MulticlassAvgFScore: A multiclass MLModel uses the F1 score technique to measure performance. For more information about performance metrics, please see the Amazon Machine Learning Developer Guide.
started_atstring (date-time)A timestamp represented in epoch time.
statusstringThe status of the evaluation. This element can have one of the following values: PENDING - Amazon Machine Language (Amazon ML) submitted a request to evaluate an MLModel. INPROGRESS - The evaluation is underway. FAILED - The request to evaluate an MLModel did not run to completion. It is not usable. COMPLETED - The evaluation process completed successfully. DELETED - The Evaluation is marked as deleted. It is not usable. (PENDING, INPROGRESS, FAILED, COMPLETED, DELETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_evaluationselectregionReturns an Evaluation that includes metadata as well as the current status of the Evaluation.
describe_evaluationsselectregionReturns a list of DescribeEvaluations that match the search criteria in the request.
create_evaluationinsertregion, EvaluationId, MLModelId, EvaluationDataSourceIdCreates 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.
update_evaluationupdateregion, EvaluationId, EvaluationNameUpdates the EvaluationName of an Evaluation. You can use the GetEvaluation operation to view the contents of the updated data element.
delete_evaluationdeleteregionAssigns the DELETED status to an Evaluation, rendering it unusable. After invoking the DeleteEvaluation operation, you can use the GetEvaluation operation to verify that the status of the Evaluation changed to DELETED. Caution: The results of the DeleteEvaluation operation are irreversible.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns an Evaluation that includes metadata as well as the current status of the Evaluation.

SELECT
compute_time,
created_at,
created_by_iam_user,
evaluation_data_source_id,
evaluation_id,
finished_at,
input_data_location_s3,
last_updated_at,
log_uri,
ml_model_id,
message,
name,
performance_metrics,
started_at,
status
FROM aws.machinelearning.evaluations
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.machinelearning.evaluations (
EvaluationId,
EvaluationName,
MLModelId,
EvaluationDataSourceId,
region
)
SELECT
'{{ EvaluationId }}' /* required */,
'{{ EvaluationName }}',
'{{ MLModelId }}' /* required */,
'{{ EvaluationDataSourceId }}' /* required */,
'{{ region }}'
RETURNING
evaluation_id
;

UPDATE examples

Updates the EvaluationName of an Evaluation. You can use the GetEvaluation operation to view the contents of the updated data element.

UPDATE aws.machinelearning.evaluations
SET
EvaluationId = '{{ EvaluationId }}',
EvaluationName = '{{ EvaluationName }}'
WHERE
region = '{{ region }}' --required
AND EvaluationId = '{{ EvaluationId }}' --required
AND EvaluationName = '{{ EvaluationName }}' --required
RETURNING
evaluation_id;

DELETE examples

Assigns the DELETED status to an Evaluation, rendering it unusable. After invoking the DeleteEvaluation operation, you can use the GetEvaluation operation to verify that the status of the Evaluation changed to DELETED. Caution: The results of the DeleteEvaluation operation are irreversible.

DELETE FROM aws.machinelearning.evaluations
WHERE region = '{{ region }}' --required
;