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