startMLEvaluationTaskRun method
Starts a task to estimate the quality of the transform.
When you provide label sets as examples of truth, AWS Glue machine learning uses some of those examples to learn from them. The rest of the labels are used as a test to estimate quality.
Returns a unique identifier for the run. You can call
GetMLTaskRun
to get more information about the stats of the
EvaluationTaskRun
.
May throw EntityNotFoundException. May throw InvalidInputException. May throw OperationTimeoutException. May throw InternalServiceException. May throw ConcurrentRunsExceededException. May throw MLTransformNotReadyException.
Parameter transformId
:
The unique identifier of the machine learning transform.
Implementation
Future<StartMLEvaluationTaskRunResponse> startMLEvaluationTaskRun({
required String transformId,
}) async {
ArgumentError.checkNotNull(transformId, 'transformId');
_s.validateStringLength(
'transformId',
transformId,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.StartMLEvaluationTaskRun'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TransformId': transformId,
},
);
return StartMLEvaluationTaskRunResponse.fromJson(jsonResponse.body);
}