Interface EvaluationDatasetMetricConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationDatasetMetricConfig.Builder,EvaluationDatasetMetricConfig>,SdkBuilder<EvaluationDatasetMetricConfig.Builder,EvaluationDatasetMetricConfig>,SdkPojo
- Enclosing class:
- EvaluationDatasetMetricConfig
public static interface EvaluationDatasetMetricConfig.Builder extends SdkPojo, CopyableBuilder<EvaluationDatasetMetricConfig.Builder,EvaluationDatasetMetricConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default EvaluationDatasetMetricConfig.Builderdataset(Consumer<EvaluationDataset.Builder> dataset)Specifies the prompt dataset.EvaluationDatasetMetricConfig.Builderdataset(EvaluationDataset dataset)Specifies the prompt dataset.EvaluationDatasetMetricConfig.BuildermetricNames(String... metricNames)The names of the metrics used.EvaluationDatasetMetricConfig.BuildermetricNames(Collection<String> metricNames)The names of the metrics used.EvaluationDatasetMetricConfig.BuildertaskType(String taskType)The task type you want the model to carry out.EvaluationDatasetMetricConfig.BuildertaskType(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 Detail
-
taskType
EvaluationDatasetMetricConfig.Builder taskType(String 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:
EvaluationTaskType,EvaluationTaskType
-
taskType
EvaluationDatasetMetricConfig.Builder taskType(EvaluationTaskType 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:
EvaluationTaskType,EvaluationTaskType
-
dataset
EvaluationDatasetMetricConfig.Builder dataset(EvaluationDataset 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
default EvaluationDatasetMetricConfig.Builder dataset(Consumer<EvaluationDataset.Builder> 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:
dataset(EvaluationDataset)
-
metricNames
EvaluationDatasetMetricConfig.Builder metricNames(Collection<String> 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
EvaluationDatasetMetricConfig.Builder metricNames(String... 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.
-
-