Interface RunMetric.Builder

  • Method Details

    • passRate

      RunMetric.Builder passRate(Unit 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

      default RunMetric.Builder passRate(Consumer<Unit.Builder> passRate)

      The share of cases that pass. Higher is better.

      This is a convenience method that creates an instance of the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to passRate(Unit).

      Parameters:
      passRate - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • notScoredRate

      RunMetric.Builder notScoredRate(Unit 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

      default RunMetric.Builder notScoredRate(Consumer<Unit.Builder> 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 the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to notScoredRate(Unit).

      Parameters:
      notScoredRate - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluatorAverage

      RunMetric.Builder evaluatorAverage(EvaluatorRef 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

      default RunMetric.Builder evaluatorAverage(Consumer<EvaluatorRef.Builder> 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 the EvaluatorRef.Builder avoiding the need to create one manually via EvaluatorRef.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evaluatorAverage(EvaluatorRef).

      Parameters:
      evaluatorAverage - a consumer that will call methods on EvaluatorRef.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • regressedCases

      RunMetric.Builder 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. 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

      default RunMetric.Builder regressedCases(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. Lower is better. Requires a control (RULE_CONTROL_REQUIRED).

      This is a convenience method that creates an instance of the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to regressedCases(Unit).

      Parameters:
      regressedCases - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fixedCases

      RunMetric.Builder 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. 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

      default RunMetric.Builder fixedCases(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. Higher is better. Requires a control (RULE_CONTROL_REQUIRED).

      This is a convenience method that creates an instance of the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fixedCases(Unit).

      Parameters:
      fixedCases - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • regressedScores

      RunMetric.Builder 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. 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

      default RunMetric.Builder regressedScores(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. Requires a control (RULE_CONTROL_REQUIRED). Takes no bound.

      This is a convenience method that creates an instance of the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to regressedScores(Unit).

      Parameters:
      regressedScores - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unpairedCaseRate

      RunMetric.Builder unpairedCaseRate(Unit 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

      default RunMetric.Builder unpairedCaseRate(Consumer<Unit.Builder> 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 the Unit.Builder avoiding the need to create one manually via Unit.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to unpairedCaseRate(Unit).

      Parameters:
      unpairedCaseRate - a consumer that will call methods on Unit.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: