Jaa


NumericMetric Class

Definition

An EvaluationMetric containing a numeric value.

public ref class NumericMetric sealed : Microsoft::Extensions::AI::Evaluation::EvaluationMetric<Nullable<double>>
public sealed class NumericMetric : Microsoft.Extensions.AI.Evaluation.EvaluationMetric<double?>
type NumericMetric = class
    inherit EvaluationMetric<Nullable<double>>
Public NotInheritable Class NumericMetric
Inherits EvaluationMetric(Of Nullable(Of Double))
Inheritance

Remarks

The underlying type of a NumericMetric's value is double. However, it can be used to represent any numeric value including int, long, float etc.

Constructors

NumericMetric(String, Nullable<Double>)

An EvaluationMetric containing a numeric value.

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