6 writes to Value
Microsoft.Extensions.AI.Evaluation (1)
EvaluationMetric{T}.cs (1)
35
Value
= value;
Microsoft.Extensions.AI.Evaluation.Quality (5)
EvaluationMetricExtensions.cs (2)
113
numericMetric.
Value
= doubleValue;
131
booleanMetric.
Value
= booleanValue;
RelevanceTruthAndCompletenessEvaluator.cs (3)
337
relevance.
Value
= rating.Relevance;
352
truth.
Value
= rating.Truth;
367
completeness.
Value
= rating.Completeness;
32 references to Value
Microsoft.Extensions.AI.Evaluation (8)
EvaluationMetric{T}.cs (1)
15
/// <typeparam name="T">The type of the <see cref="
Value
"/>.</typeparam>
EvaluationRating.cs (7)
13
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is unknown.
18
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> cannot be interpreted conclusively.
23
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being unacceptable.
28
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being poor.
33
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being average.
38
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being good.
43
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being exceptional.
Microsoft.Extensions.AI.Evaluation.Integration.Tests (10)
ResultsTests.cs (10)
48
if (booleanMetric.
Value
is bool value)
74
if (numericMetric.
Value
is double value)
109
(m is NumericMetric s && s.
Value
is not null) ||
110
(m is BooleanMetric b && b.
Value
is not null) ||
111
(m is StringMetric e && e.
Value
is not null)
135
if (e.
Value
is null)
140
if (!Enum.TryParse(e.
Value
, out MeasurementSystem measurementSystem))
142
return new EvaluationMetricInterpretation(EvaluationRating.Inconclusive, failed: true, $"Value {e.
Value
} is not an allowed value");
147
return new EvaluationMetricInterpretation(EvaluationRating.Exceptional, reason: $"Value is {e.
Value
}");
150
return new EvaluationMetricInterpretation(EvaluationRating.Unacceptable, failed: true, reason: $"Value is {e.
Value
}");
Microsoft.Extensions.AI.Evaluation.Quality (2)
EvaluationMetricExtensions.cs (2)
14
EvaluationRating rating = metric.
Value
switch
28
return metric.
Value
is double value && value < MinimumPassingScore
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (6)
ScenarioRunResultTests.cs (6)
235
Assert.Equal(booleanMetric.
Value
, deserializedBooleanMetric.
Value
);
240
Assert.Equal(numericMetric.
Value
, deserializedNumericMetric.
Value
);
245
Assert.Equal(stringMetric.
Value
, deserializedStringMetric.
Value
);
Microsoft.Extensions.AI.Evaluation.Safety (6)
EvaluationMetricExtensions.cs (6)
14
EvaluationRating rating = metric.
Value
switch
28
return metric.
Value
is double value && value > MinimumPassingScore
38
EvaluationRating rating = metric.
Value
switch
52
return metric.
Value
is double value && value < MinimumPassingScore
64
EvaluationRating rating = metric.
Value
switch
71
return metric.
Value
is bool value && value == passValue