Interface GateBound.Builder

  • Method Details

    • min

      The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.

      Parameters:
      min - The minimum value of the metric. A finite number from 0 to 1 for a rate, or from -1e9 to 1e9 for an evaluator average.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • max

      The maximum value of the metric. A finite number from 0 to 1.

      Parameters:
      max - The maximum value of the metric. A finite number from 0 to 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vsControl

      GateBound.Builder vsControl(ControlBound vsControl)

      A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).

      Parameters:
      vsControl - A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vsControl

      default GateBound.Builder vsControl(Consumer<ControlBound.Builder> vsControl)

      A bound relative to the control's value of the same metric, both over the cases both runs have: passRate and notScoredRate judged by the rule's criteria on the evaluators both runs have, evaluatorAverage over the cases both runs scored on it. A check with nothing to compare (an evaluator the control doesn't have, or no such cases) is skipped and left out of the checks. Not valid on regressedCases, fixedCases, regressedScores or unpairedCaseRate, which already compare with the control (RULE_BOUND_INVALID). Requires a control (RULE_CONTROL_REQUIRED).

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

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

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