init(_:)
Creates an evaluator with the given evaluation closure.
Declaration
init(_ evaluate: nonisolated(nonsending) @escaping (Input, ModelSubject<Input.ExpectedValue>) async throws -> Metric)Parameters
- evaluate:
A closure that receives the input and subject, and returns a Metric with a result value.