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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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.Builder
avoiding the need to create one manually viaEvaluationDataset.builder()
.When the
Consumer
completes,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 thename
parameter 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 thename
parameter 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 thename
parameter 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 thename
parameter specified inHumanEvaluationCustomMetric
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-