Interface RunMetric.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RunMetric.Builder,,RunMetric> SdkBuilder<RunMetric.Builder,,RunMetric> SdkPojo
- Enclosing class:
RunMetric
-
Method Summary
Modifier and TypeMethodDescriptiondefault RunMetric.BuilderevaluatorAverage(Consumer<EvaluatorRef.Builder> evaluatorAverage) The average score of a numeric evaluator.evaluatorAverage(EvaluatorRef evaluatorAverage) The average score of a numeric evaluator.default RunMetric.BuilderfixedCases(Consumer<Unit.Builder> fixedCases) The cases that fail on the control and pass on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have.fixedCases(Unit fixedCases) The cases that fail on the control and pass on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have.default RunMetric.BuildernotScoredRate(Consumer<Unit.Builder> notScoredRate) The share of cases with no score.notScoredRate(Unit notScoredRate) The share of cases with no score.default RunMetric.BuilderpassRate(Consumer<Unit.Builder> passRate) The share of cases that pass.The share of cases that pass.default RunMetric.BuilderregressedCases(Consumer<Unit.Builder> regressedCases) The cases that pass on the control and fail on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have.regressedCases(Unit regressedCases) The cases that pass on the control and fail on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have.default RunMetric.BuilderregressedScores(Consumer<Unit.Builder> regressedScores) Fails the run when, for any case that both runs scored, on any evaluator that both runs have, the target scored worse than the control: lower, or higher for an evaluator whose scoreDirection is LOWER_IS_BETTER on the target run.regressedScores(Unit regressedScores) Fails the run when, for any case that both runs scored, on any evaluator that both runs have, the target scored worse than the control: lower, or higher for an evaluator whose scoreDirection is LOWER_IS_BETTER on the target run.default RunMetric.BuilderunpairedCaseRate(Consumer<Unit.Builder> unpairedCaseRate) The share of cases that are not judged on both the target and the control.unpairedCaseRate(Unit unpairedCaseRate) The share of cases that are not judged on both the target and the control.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, sdkFieldNameToField, sdkFields
-
Method Details
-
passRate
The share of cases that pass. Higher is better.
- Parameters:
passRate- The share of cases that pass. Higher is better.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
passRate
The share of cases that pass. Higher is better.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topassRate(Unit).- Parameters:
passRate- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
notScoredRate
The share of cases with no score. Lower is better. When no min or max gate names this metric, a max of 0.05 applies; a vsControl gate on it does not replace that default.
- Parameters:
notScoredRate- The share of cases with no score. Lower is better. When no min or max gate names this metric, a max of 0.05 applies; a vsControl gate on it does not replace that default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
notScoredRate
The share of cases with no score. Lower is better. When no min or max gate names this metric, a max of 0.05 applies; a vsControl gate on it does not replace that default.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonotScoredRate(Unit).- Parameters:
notScoredRate- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evaluatorAverage
The average score of a numeric evaluator. Higher is better, so the gate takes min, unless the evaluator's scoreDirection is LOWER_IS_BETTER, when it takes max.
- Parameters:
evaluatorAverage- The average score of a numeric evaluator. Higher is better, so the gate takes min, unless the evaluator's scoreDirection is LOWER_IS_BETTER, when it takes max.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluatorAverage
The average score of a numeric evaluator. Higher is better, so the gate takes min, unless the evaluator's scoreDirection is LOWER_IS_BETTER, when it takes max.
This is a convenience method that creates an instance of theEvaluatorRef.Builderavoiding the need to create one manually viaEvaluatorRef.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevaluatorAverage(EvaluatorRef).- Parameters:
evaluatorAverage- a consumer that will call methods onEvaluatorRef.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
regressedCases
The cases that pass on the control and fail on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Lower is better. Requires a control (RULE_CONTROL_REQUIRED).
- Parameters:
regressedCases- The cases that pass on the control and fail on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Lower is better. Requires a control (RULE_CONTROL_REQUIRED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regressedCases
The cases that pass on the control and fail on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Lower is better. Requires a control (RULE_CONTROL_REQUIRED).
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregressedCases(Unit).- Parameters:
regressedCases- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fixedCases
The cases that fail on the control and pass on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Higher is better. Requires a control (RULE_CONTROL_REQUIRED).
- Parameters:
fixedCases- The cases that fail on the control and pass on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Higher is better. Requires a control (RULE_CONTROL_REQUIRED).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fixedCases
The cases that fail on the control and pass on the target, of the cases both runs have, each judged on both sides by the rule's criteria on the evaluators both runs have. Higher is better. Requires a control (RULE_CONTROL_REQUIRED).
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofixedCases(Unit).- Parameters:
fixedCases- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
regressedScores
Fails the run when, for any case that both runs scored, on any evaluator that both runs have, the target scored worse than the control: lower, or higher for an evaluator whose scoreDirection is LOWER_IS_BETTER on the target run. Requires a control (RULE_CONTROL_REQUIRED). Takes no bound.
- Parameters:
regressedScores- Fails the run when, for any case that both runs scored, on any evaluator that both runs have, the target scored worse than the control: lower, or higher for an evaluator whose scoreDirection is LOWER_IS_BETTER on the target run. Requires a control (RULE_CONTROL_REQUIRED). Takes no bound.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
regressedScores
Fails the run when, for any case that both runs scored, on any evaluator that both runs have, the target scored worse than the control: lower, or higher for an evaluator whose scoreDirection is LOWER_IS_BETTER on the target run. Requires a control (RULE_CONTROL_REQUIRED). Takes no bound.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toregressedScores(Unit).- Parameters:
regressedScores- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unpairedCaseRate
The share of cases that are not judged on both the target and the control. Lower is better. Requires a control (RULE_CONTROL_REQUIRED). Checked only when the rule has a gate on it: comparing with a control adds no gate.
- Parameters:
unpairedCaseRate- The share of cases that are not judged on both the target and the control. Lower is better. Requires a control (RULE_CONTROL_REQUIRED). Checked only when the rule has a gate on it: comparing with a control adds no gate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unpairedCaseRate
The share of cases that are not judged on both the target and the control. Lower is better. Requires a control (RULE_CONTROL_REQUIRED). Checked only when the rule has a gate on it: comparing with a control adds no gate.
This is a convenience method that creates an instance of theUnit.Builderavoiding the need to create one manually viaUnit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tounpairedCaseRate(Unit).- Parameters:
unpairedCaseRate- a consumer that will call methods onUnit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-