EvaluationMetric(String, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A base class that represents the result of an evaluation.
public EvaluationMetric(string name, string? reason = default);
new Microsoft.Extensions.AI.Evaluation.EvaluationMetric : string * string -> Microsoft.Extensions.AI.Evaluation.EvaluationMetric
Public Sub New (name As String, Optional reason As String = Nothing)
Parameters
- name
- String
The name of the EvaluationMetric.
- reason
- String
An optional string that can be used to provide some commentary around the result represented by this EvaluationMetric.