Class ExperimentEvaluator
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExperimentEvaluator.Builder,ExperimentEvaluator>
An evaluator that a run is scored with.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExperimentEvaluator.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe ID of the evaluator, unique among the run's evaluators.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RatingScaleThe kind of result the evaluator produces.final StringThe kind of result the evaluator produces.final ScoreDirectionWhether a higher or a lower score is better for the evaluator.final StringWhether a higher or a lower score is better for the evaluator.static Class<? extends ExperimentEvaluator.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
evaluatorId
The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID.
- Returns:
- The ID of the evaluator, unique among the run's evaluators. The run's rule and case results refer to the evaluator by this ID.
-
ratingScale
The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
If the service returns an enum value that is not available in the current SDK version,
ratingScalewill returnRatingScale.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromratingScaleAsString().- Returns:
- The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
- See Also:
-
ratingScaleAsString
The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
If the service returns an enum value that is not available in the current SDK version,
ratingScalewill returnRatingScale.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromratingScaleAsString().- Returns:
- The kind of result the evaluator produces. Must be NUMERIC when the run's rule has an evaluatorAverage gate on this evaluator. When set, a case criterion's threshold must match it: minScore or maxScore for NUMERIC, passLabels for CATEGORICAL.
- See Also:
-
scoreDirection
Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
If the service returns an enum value that is not available in the current SDK version,
scoreDirectionwill returnScoreDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscoreDirectionAsString().- Returns:
- Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
- See Also:
-
scoreDirectionAsString
Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
If the service returns an enum value that is not available in the current SDK version,
scoreDirectionwill returnScoreDirection.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscoreDirectionAsString().- Returns:
- Whether a higher or a lower score is better for the evaluator. The default is HIGHER_IS_BETTER. A case criterion and an evaluatorAverage gate on this evaluator must follow it: minScore and min for HIGHER_IS_BETTER, maxScore and max for LOWER_IS_BETTER. When the run is compared with a control, a score that moves the other way counts as a regression. Not valid when ratingScale is CATEGORICAL.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ExperimentEvaluator.Builder,ExperimentEvaluator> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-