metrics(subject:input:)
Computes metrics for the given subject, given the input sample.
Declaration
nonisolated(nonsending) func metrics(subject: Self.Subject, input: Self.Input) async throws -> [Metric]Parameters
- subject:
The subject of evaluation, which the evaluation’s
subject(from:)method produces. - input:
The input sample that contains the expected value and other context.
Return Value
An array of metrics produced by this evaluator.