Interface EvaluationDatasetMetricConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationDatasetMetricConfig.Builder,,EvaluationDatasetMetricConfig> SdkBuilder<EvaluationDatasetMetricConfig.Builder,,EvaluationDatasetMetricConfig> SdkPojo
- Enclosing class:
EvaluationDatasetMetricConfig
-
Method Summary
Modifier and TypeMethodDescriptiondataset(Consumer<EvaluationDataset.Builder> dataset) Specifies the prompt dataset.dataset(EvaluationDataset dataset) Specifies the prompt dataset.metricNames(String... metricNames) The names of the metrics used.metricNames(Collection<String> metricNames) The names of the metrics used.The task type you want the model to carry out.taskType(EvaluationTaskType taskType) The task type you want the model to carry out.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
taskType
The task type you want the model to carry out.
- Parameters:
taskType- The task type you want the model to carry out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
taskType
The task type you want the model to carry out.
- Parameters:
taskType- The task type you want the model to carry out.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataset
Specifies the prompt dataset.
- Parameters:
dataset- Specifies the prompt dataset.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataset
Specifies the prompt dataset.
This is a convenience method that creates an instance of theEvaluationDataset.Builderavoiding the need to create one manually viaEvaluationDataset.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataset(EvaluationDataset).- Parameters:
dataset- a consumer that will call methods onEvaluationDataset.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metricNames
The names of the metrics used. For automated model evaluation jobs valid values are
"Builtin.Accuracy","Builtin.Robustness", and"Builtin.Toxicity". In human-based model evaluation jobs the array of strings must match thenameparameter specified inHumanEvaluationCustomMetric.- Parameters:
metricNames- The names of the metrics used. For automated model evaluation jobs valid values are"Builtin.Accuracy","Builtin.Robustness", and"Builtin.Toxicity". In human-based model evaluation jobs the array of strings must match thenameparameter specified inHumanEvaluationCustomMetric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricNames
The names of the metrics used. For automated model evaluation jobs valid values are
"Builtin.Accuracy","Builtin.Robustness", and"Builtin.Toxicity". In human-based model evaluation jobs the array of strings must match thenameparameter specified inHumanEvaluationCustomMetric.- Parameters:
metricNames- The names of the metrics used. For automated model evaluation jobs valid values are"Builtin.Accuracy","Builtin.Robustness", and"Builtin.Toxicity". In human-based model evaluation jobs the array of strings must match thenameparameter specified inHumanEvaluationCustomMetric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-