@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EvaluationDatasetMetricConfig extends Object implements Serializable, Cloneable, StructuredPojo
Defines the built-in prompt datasets, built-in metric names and custom metric names, and the task type.
Constructor and Description |
---|
EvaluationDatasetMetricConfig() |
Modifier and Type | Method and Description |
---|---|
EvaluationDatasetMetricConfig |
clone() |
boolean |
equals(Object obj) |
EvaluationDataset |
getDataset()
Specifies the prompt dataset.
|
List<String> |
getMetricNames()
The names of the metrics used.
|
String |
getTaskType()
The task type you want the model to carry out.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataset(EvaluationDataset dataset)
Specifies the prompt dataset.
|
void |
setMetricNames(Collection<String> metricNames)
The names of the metrics used.
|
void |
setTaskType(String taskType)
The task type you want the model to carry out.
|
String |
toString()
Returns a string representation of this object.
|
EvaluationDatasetMetricConfig |
withDataset(EvaluationDataset dataset)
Specifies the prompt dataset.
|
EvaluationDatasetMetricConfig |
withMetricNames(Collection<String> metricNames)
The names of the metrics used.
|
EvaluationDatasetMetricConfig |
withMetricNames(String... metricNames)
The names of the metrics used.
|
EvaluationDatasetMetricConfig |
withTaskType(EvaluationTaskType taskType)
The task type you want the model to carry out.
|
EvaluationDatasetMetricConfig |
withTaskType(String taskType)
The task type you want the model to carry out.
|
public void setTaskType(String taskType)
The task type you want the model to carry out.
taskType
- The task type you want the model to carry out.EvaluationTaskType
public String getTaskType()
The task type you want the model to carry out.
EvaluationTaskType
public EvaluationDatasetMetricConfig withTaskType(String taskType)
The task type you want the model to carry out.
taskType
- The task type you want the model to carry out.EvaluationTaskType
public EvaluationDatasetMetricConfig withTaskType(EvaluationTaskType taskType)
The task type you want the model to carry out.
taskType
- The task type you want the model to carry out.EvaluationTaskType
public void setDataset(EvaluationDataset dataset)
Specifies the prompt dataset.
dataset
- Specifies the prompt dataset.public EvaluationDataset getDataset()
Specifies the prompt dataset.
public EvaluationDatasetMetricConfig withDataset(EvaluationDataset dataset)
Specifies the prompt dataset.
dataset
- Specifies the prompt dataset.public List<String> getMetricNames()
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 the name
parameter specified in
HumanEvaluationCustomMetric
.
"Builtin.Accuracy"
, "Builtin.Robustness"
, and "Builtin.Toxicity"
.
In human-based model evaluation jobs the array of strings must match the name
parameter
specified in HumanEvaluationCustomMetric
.public void setMetricNames(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 the name
parameter specified in
HumanEvaluationCustomMetric
.
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 the name
parameter
specified in HumanEvaluationCustomMetric
.public EvaluationDatasetMetricConfig withMetricNames(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 the name
parameter specified in
HumanEvaluationCustomMetric
.
NOTE: This method appends the values to the existing list (if any). Use
setMetricNames(java.util.Collection)
or withMetricNames(java.util.Collection)
if you want to
override the existing values.
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 the name
parameter
specified in HumanEvaluationCustomMetric
.public EvaluationDatasetMetricConfig withMetricNames(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 the name
parameter specified in
HumanEvaluationCustomMetric
.
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 the name
parameter
specified in HumanEvaluationCustomMetric
.public String toString()
toString
in class Object
Object.toString()
public EvaluationDatasetMetricConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.