2 instantiations of AnomalyDetectionEvaluator
Microsoft.ML.Data (2)
Evaluators\AnomalyDetectionEvaluator.cs (1)
661_evaluator = new AnomalyDetectionEvaluator(Host, evalArgs);
TrainCatalog.cs (1)
773var eval = new AnomalyDetectionEvaluator(Environment, args);
41 references to AnomalyDetectionEvaluator
Microsoft.ML.Data (41)
EntryPoints\InputBuilder.cs (7)
866public const string DrAtK = AnomalyDetectionEvaluator.OverallMetrics.DrAtK; 867public const string DrAtPFpr = AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr; 868public const string DrAtNumPos = AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos; 869public const string NumAnomalies = AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies; 870public const string ThreshAtK = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK; 871public const string ThreshAtP = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP; 872public const string ThreshAtNumPos = AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos;
Evaluators\AnomalyDetectionEvaluator.cs (31)
17[assembly: LoadableClass(typeof(AnomalyDetectionEvaluator), typeof(AnomalyDetectionEvaluator), typeof(AnomalyDetectionEvaluator.Arguments), typeof(SignatureEvaluator), 18"Anomaly Detection Evaluator", AnomalyDetectionEvaluator.LoadName, "AnomalyDetection", "Anomaly")] 21"Anomaly Detection Evaluator", AnomalyDetectionEvaluator.LoadName, "AnomalyDetection", "Anomaly")] 26internal sealed class AnomalyDetectionEvaluator : EvaluatorBase<AnomalyDetectionEvaluator.Aggregator> 644private readonly AnomalyDetectionEvaluator _evaluator; 654var evalArgs = new AnomalyDetectionEvaluator.Arguments(); 667if (!metrics.TryGetValue(AnomalyDetectionEvaluator.TopKResults, out top)) 672DataViewSchema.Column? column = top.Schema.GetColumnOrNull(AnomalyDetectionEvaluator.TopKResultsColumns.Instance); 674throw Host.ExceptSchemaMismatch(nameof(top.Schema), "instance", AnomalyDetectionEvaluator.TopKResultsColumns.Instance); 677column = top.Schema.GetColumnOrNull(AnomalyDetectionEvaluator.TopKResultsColumns.AnomalyScore); 679throw Host.ExceptSchemaMismatch(nameof(top.Schema), "anomaly score", AnomalyDetectionEvaluator.TopKResultsColumns.AnomalyScore); 682column = top.Schema.GetColumnOrNull(AnomalyDetectionEvaluator.TopKResultsColumns.Label); 684throw Host.ExceptSchemaMismatch(nameof(top.Schema), "label", AnomalyDetectionEvaluator.TopKResultsColumns.Label); 716DataViewSchema.Column? numAnom = overall.Schema.GetColumnOrNull(AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies); 718throw Host.ExceptSchemaMismatch(nameof(overall.Schema), "number of anomalies", AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies); 726using (var cursor = overall.GetRowCursor(overall.Schema.Where(col => col.Name.Equals(AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies) || 757(kFormatName, AnomalyDetectionEvaluator.OverallMetrics.DrAtK), 758(pFormatName, AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr), 759(numAnomName, AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos) 767colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK); 768colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP); 769colsToKeep.Add(AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos); 783AnomalyDetectionEvaluator.OverallMetrics.NumAnomalies, 784AnomalyDetectionEvaluator.OverallMetrics.ThreshAtK, 785AnomalyDetectionEvaluator.OverallMetrics.ThreshAtP, 786AnomalyDetectionEvaluator.OverallMetrics.ThreshAtNumPos); 805yield return new MetricColumn("DrAtK", AnomalyDetectionEvaluator.OverallMetrics.DrAtK, canBeWeighted: false); 806yield return new MetricColumn("DrAtPFpr", AnomalyDetectionEvaluator.OverallMetrics.DrAtPFpr, canBeWeighted: false); 807yield return new MetricColumn("DrAtNumPos", AnomalyDetectionEvaluator.OverallMetrics.DrAtNumPos, canBeWeighted: false);
Evaluators\Metrics\AnomalyDetectionMetrics.cs (1)
44DetectionRateAtFalsePositiveCount = FetchDouble(AnomalyDetectionEvaluator.OverallMetrics.DrAtK);
TrainCatalog.cs (2)
770var args = new AnomalyDetectionEvaluator.Arguments(); 773var eval = new AnomalyDetectionEvaluator(Environment, args);