Interface ControlSource.Builder

  • Method Details

    • target

      A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).

      Parameters:
      target - A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      A version of the experiment's target to run alongside the run as a live control. Hosted runs only. Must be the same kind as the experiment's target (TARGET_MISMATCH); not supported on reported runs (CONTROL_TARGET_UNSUPPORTED).

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

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

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

      The ID of an earlier run of this experiment. The run must be COMPLETED, must not be a CONTROL run, and must match this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Fails with CONTROL_RUN_INVALID otherwise, naming what differs: the dataset version expected and found, or the evaluators the control is missing or has in extra.

      Parameters:
      runId - The ID of an earlier run of this experiment. The run must be COMPLETED, must not be a CONTROL run, and must match this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Fails with CONTROL_RUN_INVALID otherwise, naming what differs: the dataset version expected and found, or the evaluators the control is missing or has in extra.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestPassed

      ControlSource.Builder latestPassed(LatestPassedFilter latestPassed)

      Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.

      Parameters:
      latestPassed - Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • latestPassed

      default ControlSource.Builder latestPassed(Consumer<LatestPassedFilter.Builder> latestPassed)

      Uses the newest earlier run of this experiment with verdict PASSED that matches this run: the same dataset at the same dataset version (a run with no version matches only a run with no version), and the same set of evaluator IDs, in any order. Resolved when the run starts, with the endpointArn filter when given. Fails with CONTROL_RUN_NOT_FOUND if there is none.

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

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

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