11 writes to Value
Microsoft.Extensions.AI.Evaluation (1)
EvaluationMetric{T}.cs (1)
30Value = value;
Microsoft.Extensions.AI.Evaluation.NLP (3)
BLEUEvaluator.cs (1)
100metric.Value = score;
F1Evaluator.cs (1)
81metric.Value = score;
GLEUEvaluator.cs (1)
93metric.Value = score;
Microsoft.Extensions.AI.Evaluation.Quality (7)
EvaluationMetricExtensions.cs (3)
132numericMetric.Value = doubleValue; 150booleanMetric.Value = booleanValue; 155booleanMetric.Value = intValue is 1;
IntentResolutionEvaluator.cs (1)
387metric.Value = rating.ResolutionScore;
RelevanceTruthAndCompletenessEvaluator.cs (3)
339relevance.Value = rating.Relevance; 351truth.Value = rating.Truth; 363completeness.Value = rating.Completeness;
47 references to Value
Microsoft.Extensions.AI.Evaluation (8)
EvaluationMetric{T}.cs (1)
10/// <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)
46if (booleanMetric.Value is bool value) 72if (numericMetric.Value is double value) 107(m is NumericMetric s && s.Value is not null) || 108(m is BooleanMetric b && b.Value is not null) || 109(m is StringMetric e && e.Value is not null) 133if (e.Value is null) 138if (!Enum.TryParse(e.Value, out MeasurementSystem measurementSystem)) 140return new EvaluationMetricInterpretation(EvaluationRating.Inconclusive, failed: true, $"Value {e.Value} is not an allowed value"); 145return new EvaluationMetricInterpretation(EvaluationRating.Exceptional, reason: $"Value is {e.Value}"); 148return new EvaluationMetricInterpretation(EvaluationRating.Unacceptable, failed: true, reason: $"Value is {e.Value}");
Microsoft.Extensions.AI.Evaluation.NLP (2)
Common\ScoreInterpretationExtensions.cs (2)
15EvaluationRating rating = metric.Value switch 29return metric.Value is double value && value < MinimumPassingScore
Microsoft.Extensions.AI.Evaluation.NLP.Tests (11)
BLEUEvaluatorTests.cs (4)
24Assert.Equal(1.0, (double)metric!.Value!, 4); 40Assert.Equal(0.0136, (double)metric!.Value!, 4); 75Assert.Equal(score, (double)metric!.Value!, 4); 95Assert.Equal(0.5046, (double)metric!.Value!, 4);
F1EvaluatorTests.cs (3)
24Assert.Equal(1.0, (double)metric!.Value!, 4); 40Assert.Equal(0.1429, (double)metric!.Value!, 4); 75Assert.Equal(score, (double)metric!.Value!, 4);
GLEUEvaluatorTests.cs (4)
24Assert.Equal(1.0, (double)metric!.Value!, 4); 40Assert.Equal(0.02939, (double)metric!.Value!, 4); 75Assert.Equal(score, (double)metric!.Value!, 4); 95Assert.Equal(0.29799, (double)metric!.Value!, 4);
Microsoft.Extensions.AI.Evaluation.Quality (4)
EvaluationMetricExtensions.cs (4)
14EvaluationRating rating = metric.Value switch 28return metric.Value is double value && value < MinimumPassingScore 40EvaluationRating rating = metric.Value switch 47return metric.Value is bool value && value == passValue
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (6)
ScenarioRunResultTests.cs (6)
237Assert.Equal(booleanMetric.Value, deserializedBooleanMetric.Value); 242Assert.Equal(numericMetric.Value, deserializedNumericMetric.Value); 247Assert.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