FitResult

sealed class FitResult(source)

Terminal outcome of a fitting job, returned by FitHandle.result.await() and submitAndAwaitBlocking. Always resolves to exactly one variant; the matching terminal FitEvent is the last event on the handle's flow.

Inheritors

Constructors

Link copied to clipboard
protected constructor()

Types

Link copied to clipboard
data class BatchCompleted(val report: BatchFitResultData) : FitResult

A batch finished. The carried BatchFitResultData holds the complete per-dataset result graph for every dataset that fit, plus a BatchFailure for any entry that threw — a batch completes even when some datasets fail. Whole-batch failure or cancellation use Failed / Cancelled instead.

Link copied to clipboard
data class Cancelled(val reason: String) : FitResult

The fit was cancelled before completion.

Link copied to clipboard
data class Completed(val report: FitResultData) : FitResult

The fit produced a usable, fully-populated FitResultData — the complete serializable result graph (data summary, ranked fits with goodness-of-fit, full MODA scoring, and bootstrap summaries when requested) assembled by the result extractor.

Link copied to clipboard
data class Failed(val error: FittingError) : FitResult

The fit failed with a structured error.