BatchFitResultData

@Serializable
data class BatchFitResultData(val results: List<FitResultData>, val failures: List<BatchFailure> = emptyList())(source)

Wire-safe aggregate result for a FitSpec.Batch: the successful per-dataset results in submission order, plus any per-dataset failures. Each FitResultData.datasetName identifies its entry.

Constructors

Link copied to clipboard
constructor(results: List<FitResultData>, failures: List<BatchFailure> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun BatchFitResultData.toDocument(title: String? = null, includePerDataset: Boolean = false): ReportNode.Document

Builds the batch report document: the cross-dataset summary, and — when includePerDataset is true — a section per successful dataset reusing the single-result DTO-driven sections (data summary, ranked fits, MODA, and the recommended fit's goodness of fit). Per-dataset plots are not rendered here (the batch result carries no raw data); a caller holding a dataset's data can build that dataset's full document via FitResultData.toDocument.