DatasetMaxFailureRateExceededException

class DatasetMaxFailureRateExceededException(val failedRatio: Ratio, val threshold: Double) : RuntimeException

Thrown synchronously by StageScope.iterateDataset after the loop completes, when the observed per-item failure rate exceeds the configured threshold. Carries the structured cause (rate + threshold) so the recognizer can describe the abort without parsing a string.

Recognized via a dedicated branch in analyzeTrainingFailure that maps it to FailureKind.EXECUTION_ABORTED. TODO: Make it an ExecutionAbortException once the behaviour of this failure is standardized and can reuse the abort logic.

Constructors

Link copied to clipboard
constructor(failedRatio: Ratio, threshold: Double)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

The observed per-item failure rate that tripped the limit.

Link copied to clipboard
open val message: String?
Link copied to clipboard

The configured maximum allowed failure rate.