Interface GetEvaluationResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetEvaluationResponse.Builder,GetEvaluationResponse>,MachineLearningResponse.Builder,SdkBuilder<GetEvaluationResponse.Builder,GetEvaluationResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetEvaluationResponse
public static interface GetEvaluationResponse.Builder extends MachineLearningResponse.Builder, SdkPojo, CopyableBuilder<GetEvaluationResponse.Builder,GetEvaluationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetEvaluationResponse.BuildercomputeTime(Long computeTime)The approximate CPU time in milliseconds that Amazon Machine Learning spent processing theEvaluation, normalized and scaled on computation resources.GetEvaluationResponse.BuildercreatedAt(Instant createdAt)The time that theEvaluationwas created.GetEvaluationResponse.BuildercreatedByIamUser(String createdByIamUser)The AWS user account that invoked the evaluation.GetEvaluationResponse.BuilderevaluationDataSourceId(String evaluationDataSourceId)TheDataSourceused for this evaluation.GetEvaluationResponse.BuilderevaluationId(String evaluationId)The evaluation ID which is same as theEvaluationIdin the request.GetEvaluationResponse.BuilderfinishedAt(Instant finishedAt)The epoch time when Amazon Machine Learning marked theEvaluationasCOMPLETEDorFAILED.GetEvaluationResponse.BuilderinputDataLocationS3(String inputDataLocationS3)The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).GetEvaluationResponse.BuilderlastUpdatedAt(Instant lastUpdatedAt)The time of the most recent edit to theEvaluation.GetEvaluationResponse.BuilderlogUri(String logUri)A link to the file that contains logs of theCreateEvaluationoperation.GetEvaluationResponse.Buildermessage(String message)A description of the most recent details about evaluating theMLModel.GetEvaluationResponse.BuildermlModelId(String mlModelId)The ID of theMLModelthat was the focus of the evaluation.GetEvaluationResponse.Buildername(String name)A user-supplied name or description of theEvaluation.default GetEvaluationResponse.BuilderperformanceMetrics(Consumer<PerformanceMetrics.Builder> performanceMetrics)Measurements of how well theMLModelperformed using observations referenced by theDataSource.GetEvaluationResponse.BuilderperformanceMetrics(PerformanceMetrics performanceMetrics)Measurements of how well theMLModelperformed using observations referenced by theDataSource.GetEvaluationResponse.BuilderstartedAt(Instant startedAt)The epoch time when Amazon Machine Learning marked theEvaluationasINPROGRESS.GetEvaluationResponse.Builderstatus(String status)The status of the evaluation.GetEvaluationResponse.Builderstatus(EntityStatus status)The status of the evaluation.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.machinelearning.model.MachineLearningResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
evaluationId
GetEvaluationResponse.Builder evaluationId(String evaluationId)
The evaluation ID which is same as the
EvaluationIdin the request.- Parameters:
evaluationId- The evaluation ID which is same as theEvaluationIdin the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mlModelId
GetEvaluationResponse.Builder mlModelId(String mlModelId)
The ID of the
MLModelthat was the focus of the evaluation.- Parameters:
mlModelId- The ID of theMLModelthat was the focus of the evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationDataSourceId
GetEvaluationResponse.Builder evaluationDataSourceId(String evaluationDataSourceId)
The
DataSourceused for this evaluation.- Parameters:
evaluationDataSourceId- TheDataSourceused for this evaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputDataLocationS3
GetEvaluationResponse.Builder inputDataLocationS3(String inputDataLocationS3)
The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).
- Parameters:
inputDataLocationS3- The location of the data file or directory in Amazon Simple Storage Service (Amazon S3).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdByIamUser
GetEvaluationResponse.Builder createdByIamUser(String createdByIamUser)
The 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.
- Parameters:
createdByIamUser- The 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
GetEvaluationResponse.Builder createdAt(Instant createdAt)
The time that the
Evaluationwas created. The time is expressed in epoch time.- Parameters:
createdAt- The time that theEvaluationwas created. The time is expressed in epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedAt
GetEvaluationResponse.Builder lastUpdatedAt(Instant lastUpdatedAt)
The time of the most recent edit to the
Evaluation. The time is expressed in epoch time.- Parameters:
lastUpdatedAt- The time of the most recent edit to theEvaluation. The time is expressed in epoch time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
GetEvaluationResponse.Builder name(String name)
A user-supplied name or description of the
Evaluation.- Parameters:
name- A user-supplied name or description of theEvaluation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
GetEvaluationResponse.Builder status(String status)
The status of the evaluation. This element can have one of the following values:
-
PENDING- Amazon Machine Language (Amazon ML) submitted a request to evaluate anMLModel. -
INPROGRESS- The evaluation is underway. -
FAILED- The request to evaluate anMLModeldid not run to completion. It is not usable. -
COMPLETED- The evaluation process completed successfully. -
DELETED- TheEvaluationis marked as deleted. It is not usable.
- Parameters:
status- The status of the evaluation. This element can have one of the following values:-
PENDING- Amazon Machine Language (Amazon ML) submitted a request to evaluate anMLModel. -
INPROGRESS- The evaluation is underway. -
FAILED- The request to evaluate anMLModeldid not run to completion. It is not usable. -
COMPLETED- The evaluation process completed successfully. -
DELETED- TheEvaluationis marked as deleted. It is not usable.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityStatus,EntityStatus
-
-
status
GetEvaluationResponse.Builder status(EntityStatus status)
The status of the evaluation. This element can have one of the following values:
-
PENDING- Amazon Machine Language (Amazon ML) submitted a request to evaluate anMLModel. -
INPROGRESS- The evaluation is underway. -
FAILED- The request to evaluate anMLModeldid not run to completion. It is not usable. -
COMPLETED- The evaluation process completed successfully. -
DELETED- TheEvaluationis marked as deleted. It is not usable.
- Parameters:
status- The status of the evaluation. This element can have one of the following values:-
PENDING- Amazon Machine Language (Amazon ML) submitted a request to evaluate anMLModel. -
INPROGRESS- The evaluation is underway. -
FAILED- The request to evaluate anMLModeldid not run to completion. It is not usable. -
COMPLETED- The evaluation process completed successfully. -
DELETED- TheEvaluationis marked as deleted. It is not usable.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EntityStatus,EntityStatus
-
-
performanceMetrics
GetEvaluationResponse.Builder performanceMetrics(PerformanceMetrics performanceMetrics)
Measurements of how well the
MLModelperformed using observations referenced by theDataSource. One of the following metric is returned based on the type of theMLModel:-
BinaryAUC: A binary
MLModeluses the Area Under the Curve (AUC) technique to measure performance. -
RegressionRMSE: A regression
MLModeluses 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
MLModeluses the F1 score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide.
- Parameters:
performanceMetrics- Measurements of how well theMLModelperformed using observations referenced by theDataSource. One of the following metric is returned based on the type of theMLModel:-
BinaryAUC: A binary
MLModeluses the Area Under the Curve (AUC) technique to measure performance. -
RegressionRMSE: A regression
MLModeluses 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
MLModeluses the F1 score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
performanceMetrics
default GetEvaluationResponse.Builder performanceMetrics(Consumer<PerformanceMetrics.Builder> performanceMetrics)
Measurements of how well the
MLModelperformed using observations referenced by theDataSource. One of the following metric is returned based on the type of theMLModel:-
BinaryAUC: A binary
MLModeluses the Area Under the Curve (AUC) technique to measure performance. -
RegressionRMSE: A regression
MLModeluses 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
MLModeluses the F1 score technique to measure performance.
For more information about performance metrics, please see the Amazon Machine Learning Developer Guide.
This is a convenience method that creates an instance of thePerformanceMetrics.Builderavoiding the need to create one manually viaPerformanceMetrics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toperformanceMetrics(PerformanceMetrics).- Parameters:
performanceMetrics- a consumer that will call methods onPerformanceMetrics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
performanceMetrics(PerformanceMetrics)
-
-
logUri
GetEvaluationResponse.Builder logUri(String logUri)
A link to the file that contains logs of the
CreateEvaluationoperation.- Parameters:
logUri- A link to the file that contains logs of theCreateEvaluationoperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
GetEvaluationResponse.Builder message(String message)
A description of the most recent details about evaluating the
MLModel.- Parameters:
message- A description of the most recent details about evaluating theMLModel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeTime
GetEvaluationResponse.Builder computeTime(Long computeTime)
The approximate CPU time in milliseconds that Amazon Machine Learning spent processing the
Evaluation, normalized and scaled on computation resources.ComputeTimeis only available if theEvaluationis in theCOMPLETEDstate.- Parameters:
computeTime- The approximate CPU time in milliseconds that Amazon Machine Learning spent processing theEvaluation, normalized and scaled on computation resources.ComputeTimeis only available if theEvaluationis in theCOMPLETEDstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
finishedAt
GetEvaluationResponse.Builder finishedAt(Instant finishedAt)
The epoch time when Amazon Machine Learning marked the
EvaluationasCOMPLETEDorFAILED.FinishedAtis only available when theEvaluationis in theCOMPLETEDorFAILEDstate.- Parameters:
finishedAt- The epoch time when Amazon Machine Learning marked theEvaluationasCOMPLETEDorFAILED.FinishedAtis only available when theEvaluationis in theCOMPLETEDorFAILEDstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedAt
GetEvaluationResponse.Builder startedAt(Instant startedAt)
The epoch time when Amazon Machine Learning marked the
EvaluationasINPROGRESS.StartedAtisn't available if theEvaluationis in thePENDINGstate.- Parameters:
startedAt- The epoch time when Amazon Machine Learning marked theEvaluationasINPROGRESS.StartedAtisn't available if theEvaluationis in thePENDINGstate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-