Auf Englisch lesen

Teilen über


BooleanMetric Class

Definition

An EvaluationMetric containing a Boolean value that can be used to represent an outcome that can have one of two possible values (such as yes v/s no, or pass v/s fail).

C#
public sealed class BooleanMetric : Microsoft.Extensions.AI.Evaluation.EvaluationMetric<bool?>
Inheritance

Constructors

BooleanMetric(String, Nullable<Boolean>)

An EvaluationMetric containing a Boolean value that can be used to represent an outcome that can have one of two possible values (such as yes v/s no, or pass v/s fail).

Properties

Diagnostics

Gets or sets a collection of zero or more EvaluationDiagnostics associated with the current EvaluationMetric.

(Inherited from EvaluationMetric)
Interpretation

Gets or sets an EvaluationMetricInterpretation that identifies whether the result of the evaluation represented by the current EvaluationMetric is considered good or bad, passed or failed etc.

(Inherited from EvaluationMetric)
Name

Gets or sets the name of the EvaluationMetric.

(Inherited from EvaluationMetric)
Value

Gets or sets the value of the EvaluationMetric<T>.

(Inherited from EvaluationMetric<T>)

Methods

Extension Methods

ContainsDiagnostics(EvaluationMetric, Func<EvaluationDiagnostic,Boolean>)

Returns true if the supplied metric contains any EvaluationDiagnostic matching the supplied predicate; false otherwise.

Applies to

Produkt Versionen
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)