EvaluationResult
The results of running a model evaluation.
Declaration
struct EvaluationResultMentioned in
Overview
A structure that contains the summary and detailed results from an evaluation run.
Use the column descriptors from your Evaluation to access typed columns from the detailed DataFrame:
let result = try await evaluation.run(on: samples)
let inputs = result.detailed[evaluation.inputColumn]
let responses = result.detailed[evaluation.responseColumn]
let expected = result.detailed[evaluation.expectedColumn]Topics
Accessing results
summarydetailedevaluationInfoevaluationIDresultIDreportMetadataaggregateValue(_:)EvaluationResult.DataFrameKind
Inspecting timing
Formatting results
Saving and loading results
saveJSON(to:includeReportMetadata:includeTranscripts:)jsonData(includeReportMetadata:includeTranscripts:jsonOptions:)loadJSON(from:)loadJSONLines(from:)init(jsonData:)