1 write to Name
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyEvaluator.cs (1)
166metric.Name = metricName;
71 references to Name
Microsoft.Extensions.AI.Evaluation (21)
CompositeEvaluator.cs (3)
21/// Gets the <see cref="EvaluationMetric.Name"/>s of all the <see cref="EvaluationMetric"/>s produced by the 78/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 162result.Metrics.Add(metric.Name, metric);
EvaluationResult.cs (10)
39/// The dictionary is keyed on the <see cref="EvaluationMetric.Name"/>s of the contained 64if (!metricsDictionary.TryAdd(metric.Name, metric)) 66Throw.ArgumentException(nameof(metrics), $"Cannot add multiple metrics with name '{metric.Name}'."); 94/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 99/// The <see cref="EvaluationMetric.Name"/> of the <see cref="EvaluationMetric"/> to be returned. 103/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 125/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 130/// The <see cref="EvaluationMetric.Name"/> of the <see cref="EvaluationMetric"/> to be returned. 134/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 139/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> does not exist in
EvaluatorExtensions.cs (6)
22/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 62/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 107/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 147/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 192/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 237/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned
IEvaluator.cs (2)
19/// Gets the <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s produced by this 30/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned
Microsoft.Extensions.AI.Evaluation.Integration.Tests (1)
TestEvaluator.cs (1)
19=> [.. TestMetrics.Select(t => t.Name)];
Microsoft.Extensions.AI.Evaluation.NLP (2)
BLEUEvaluator.cs (1)
32/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
Common\NLPScoreInterpretation.cs (1)
33reason: $"{metric.Name} is less than {MinimumPassingScore}.")
Microsoft.Extensions.AI.Evaluation.NLP.Tests (6)
BLEUEvaluatorTests.cs (6)
24Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name); 40Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name); 55Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name); 75Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name); 95Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name); 108Assert.Equal(BLEUEvaluator.BLEUMetricName, metric.Name);
Microsoft.Extensions.AI.Evaluation.Quality (18)
CoherenceEvaluator.cs (1)
47/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
CompletenessEvaluator.cs (1)
43/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
EquivalenceEvaluator.cs (1)
43/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
EvaluationMetricExtensions.cs (5)
32reason: $"{metric.Name} is less than {MinimumPassingScore}.") 52reason: $"{metric.Name} is not {passValue}."); 92Failed to parse score for '{metric.Name}' from the following evaluation response: 140Failed to parse numeric score for '{metric.Name}' from the following text: 163Failed to parse boolean score for '{metric.Name}' from the following text:
FluencyEvaluator.cs (1)
41/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
GroundednessEvaluator.cs (1)
42/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
IntentResolutionEvaluator.cs (1)
55/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RelevanceEvaluator.cs (1)
45/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RelevanceTruthAndCompletenessEvaluator.cs (3)
49/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by 55/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by 61/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RetrievalEvaluator.cs (1)
51/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
TaskAdherenceEvaluator.cs (1)
54/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
ToolCallAccuracyEvaluator.cs (1)
56/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
ScenarioRunResultTests.cs (2)
255Assert.Equal(metric.Name, deserializedMetric.Name);
Microsoft.Extensions.AI.Evaluation.Safety (21)
CodeVulnerabilityEvaluator.cs (1)
40/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ContentHarmEvaluator.cs (1)
25/// with the Azure AI Foundry Evaluation service, to the <see cref="EvaluationMetric.Name"/>s of the
ContentSafetyEvaluator.cs (3)
30/// AI Foundry Evaluation service, to the <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s 163string contentSafetyServiceMetricName = metric.Name; 190updatedResult.Metrics.Add(metric.Name, metric);
ContentSafetyService.cs (1)
123result.Metrics.Add(metric.Name, metric);
EvaluationMetricExtensions.cs (3)
32reason: $"{metric.Name} is greater than {MinimumPassingScore}.") 56reason: $"{metric.Name} is less than {MinimumPassingScore}.") 76reason: $"{metric.Name} is not {passValue}.");
GroundednessProEvaluator.cs (1)
41/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
HateAndUnfairnessEvaluator.cs (1)
28/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
IndirectAttackEvaluator.cs (1)
51/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ProtectedMaterialEvaluator.cs (5)
42/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 48/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 54/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 60/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 104result.Metrics.Add(imageMetric.Name, imageMetric);
SelfHarmEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
SexualEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
UngroundedAttributesEvaluator.cs (1)
45/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ViolenceEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by