Del via


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.

public ref class BooleanMetric sealed : Microsoft::Extensions::AI::Evaluation::EvaluationMetric<Nullable<bool>>
public sealed class BooleanMetric : Microsoft.Extensions.AI.Evaluation.EvaluationMetric<bool?>
type BooleanMetric = class
    inherit EvaluationMetric<Nullable<bool>>
Public NotInheritable Class BooleanMetric
Inherits EvaluationMetric(Of Nullable(Of Boolean))
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.

Properties

Diagnostics

A collection of zero or more EvaluationDiagnostics associated with the current EvaluationMetric.

(Inherited from EvaluationMetric)
Interpretation

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

The name of the EvaluationMetric.

(Inherited from EvaluationMetric)
Value

The value of the EvaluationMetric<T>.

(Inherited from EvaluationMetric<T>)

Methods

AddDiagnostic(EvaluationDiagnostic)

Adds a EvaluationDiagnostic to the current EvaluationMetric's Diagnostics.

(Inherited from EvaluationMetric)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

ContainsDiagnostics(EvaluationMetric, Func<EvaluationDiagnostic,Boolean>)

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

Applies to