5 writes to Value
Microsoft.Extensions.AI.Evaluation (1)
EvaluationMetric{T}.cs (1)
35
Value
= value;
Microsoft.Extensions.AI.Evaluation.Quality (4)
RelevanceTruthAndCompletenessEvaluator.cs (3)
238
relevance.
Value
= rating.Relevance;
253
truth.
Value
= rating.Truth;
268
completeness.
Value
= rating.Completeness;
SingleNumericMetricEvaluator.cs (1)
114
metric.
Value
= score;
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 exceptional.
28
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being good.
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 poor.
43
/// A value that indicates that the <see cref="EvaluationMetric{T}.
Value
"/> is interpreted as being unacceptable.
Microsoft.Extensions.AI.Evaluation.Integration.Tests (10)
ResultsTests.cs (10)
47
if (booleanMetric.
Value
is bool value)
73
if (numericMetric.
Value
is double value)
108
(m is NumericMetric s && s.
Value
is not null) ||
109
(m is BooleanMetric b && b.
Value
is not null) ||
110
(m is StringMetric e && e.
Value
is not null)
134
if (e.
Value
is null)
139
if (!Enum.TryParse(e.
Value
, out MeasurementSystem measurementSystem))
141
return new EvaluationMetricInterpretation(EvaluationRating.Inconclusive, failed: true, $"Value {e.
Value
} is not an allowed value");
146
return new EvaluationMetricInterpretation(EvaluationRating.Exceptional, reason: $"Value is {e.
Value
}");
149
return new EvaluationMetricInterpretation(EvaluationRating.Unacceptable, failed: true, reason: $"Value is {e.
Value
}");
Microsoft.Extensions.AI.Evaluation.Quality (2)
EvaluationMetricExtensions.cs (2)
10
EvaluationRating rating = metric.
Value
switch
24
return metric.
Value
is double value && value < MinimumPassingScore
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (6)
ScenarioRunResultTests.cs (6)
179
Assert.Equal(booleanMetric.
Value
, deserializedBooleanMetric.
Value
);
189
Assert.Equal(numericMetric.
Value
, deserializedNumericMetric.
Value
);
199
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