5 writes to Value
Microsoft.Extensions.AI.Evaluation (1)
EvaluationMetric{T}.cs (1)
35Value = value;
Microsoft.Extensions.AI.Evaluation.Quality (4)
RelevanceTruthAndCompletenessEvaluator.cs (3)
238relevance.Value = rating.Relevance; 253truth.Value = rating.Truth; 268completeness.Value = rating.Completeness;
SingleNumericMetricEvaluator.cs (1)
114metric.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)
47if (booleanMetric.Value is bool value) 73if (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) 134if (e.Value is null) 139if (!Enum.TryParse(e.Value, out MeasurementSystem measurementSystem)) 141return new EvaluationMetricInterpretation(EvaluationRating.Inconclusive, failed: true, $"Value {e.Value} is not an allowed value"); 146return new EvaluationMetricInterpretation(EvaluationRating.Exceptional, reason: $"Value is {e.Value}"); 149return new EvaluationMetricInterpretation(EvaluationRating.Unacceptable, failed: true, reason: $"Value is {e.Value}");
Microsoft.Extensions.AI.Evaluation.Quality (2)
EvaluationMetricExtensions.cs (2)
10EvaluationRating rating = metric.Value switch 24return metric.Value is double value && value < MinimumPassingScore
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (6)
ScenarioRunResultTests.cs (6)
179Assert.Equal(booleanMetric.Value, deserializedBooleanMetric.Value); 189Assert.Equal(numericMetric.Value, deserializedNumericMetric.Value); 199Assert.Equal(stringMetric.Value, deserializedStringMetric.Value);
Microsoft.Extensions.AI.Evaluation.Safety (6)
EvaluationMetricExtensions.cs (6)
14EvaluationRating rating = metric.Value switch 28return metric.Value is double value && value > MinimumPassingScore 38EvaluationRating rating = metric.Value switch 52return metric.Value is double value && value < MinimumPassingScore 64EvaluationRating rating = metric.Value switch 71return metric.Value is bool value && value == passValue