4 writes to Items
Microsoft.ML.TimeSeries (4)
RootCauseAnalyzer.cs (3)
56
_preparedCauses.Add(new RootCause() {
Items
= new List<RootCauseItem>() });
149
_preparedCauses.Add(new RootCause {
Items
= new List<RootCauseItem>() { new RootCauseItem(anomalyDimension) } });
155
RootCause rootCause = new RootCause {
Items
= new List<RootCauseItem>() };
RootCauseLocalizationType.cs (1)
30
Items
= new List<RootCauseItem>();
43 references to Items
Microsoft.ML.Samples (2)
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (1)
27
foreach (RootCauseItem item in prediction.
Items
)
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (1)
31
foreach (RootCauseItem item in cause.
Items
)
Microsoft.ML.TimeSeries (11)
RootCauseAnalyzer.cs (11)
176
rootCause.
Items
.Add(new RootCauseItem(anomalyDimension));
181
rootCause.
Items
.AddRange(children.Select(anomaly =>
353
if (dst.
Items
.Count > 1)
358
foreach (RootCauseItem item in dst.
Items
)
374
dst.
Items
[i].Score = 1;
378
dst.
Items
[i].Score = GetFinalScore(scoreList[i].Surprise, Math.Abs(scoreList[i].ExplanatoryScore), beta);
382
else if (dst.
Items
.Count == 1)
384
TimeSeriesPoint rootCausePoint = GetPointByDimension(dimPointMapping, dst.
Items
[0].Dimension, pointTree, aggType, aggSymbol);
390
dst.
Items
[0].Score = 1;
394
dst.
Items
[0].Score = GetFinalScore(scores.Item1, scores.Item2, beta);
396
dst.
Items
[0].Direction = GetRootCauseDirection(rootCausePoint);
Microsoft.ML.TimeSeries.Tests (30)
TimeSeriesDirectApi.cs (30)
964
Assert.Equal(1, (int)rootCause.
Items
.Count);
965
Assert.Equal(3, (int)rootCause.
Items
[0].Dimension.Count);
966
Assert.Equal(AnomalyDirection.Up, rootCause.
Items
[0].Direction);
967
Assert.Equal(1, (int)rootCause.
Items
[0].Path.Count);
968
Assert.Equal("DataCenter", rootCause.
Items
[0].Path[0]);
975
foreach (KeyValuePair<string, object> pair in rootCause.
Items
[0].Dimension)
993
Assert.Equal(1, (int)preparedCauses[0].
Items
.Count);
994
Assert.Equal(3, (int)preparedCauses[0].
Items
[0].Dimension.Count);
995
Assert.Equal(AnomalyDirection.Up, preparedCauses[0].
Items
[0].Direction);
996
Assert.Equal(1, (int)preparedCauses[0].
Items
[0].Path.Count);
997
Assert.Equal("DataCenter", preparedCauses[0].
Items
[0].Path[0]);
1004
foreach (KeyValuePair<string, object> pair in preparedCauses[0].
Items
[0].Dimension)
1009
Assert.Equal(1, (int)preparedCauses[1].
Items
.Count);
1010
Assert.Equal(3, (int)preparedCauses[1].
Items
[0].Dimension.Count);
1011
Assert.Equal(AnomalyDirection.Up, preparedCauses[1].
Items
[0].Direction);
1012
Assert.Equal(1, (int)preparedCauses[1].
Items
[0].Path.Count);
1013
Assert.Equal("DeviceType", preparedCauses[1].
Items
[0].Path[0]);
1020
foreach (KeyValuePair<string, object> pair in preparedCauses[1].
Items
[0].Dimension)
1041
Assert.Single(rootCause.
Items
);
1042
Assert.Equal(3, rootCause.
Items
[0].Dimension.Count);
1043
Assert.Equal(AnomalyDirection.Up, rootCause.
Items
[0].Direction);
1044
Assert.Single(rootCause.
Items
[0].Path);
1045
Assert.Equal("DataCenter", rootCause.
Items
[0].Path[0]);
1054
foreach (KeyValuePair<string, object> pair in rootCause.
Items
[0].Dimension)
1191
Assert.Single(rootCause.
Items
);
1192
Assert.Equal(3, rootCause.
Items
[0].Dimension.Count);
1193
Assert.Equal(AnomalyDirection.Up, rootCause.
Items
[0].Direction);
1194
Assert.Single(rootCause.
Items
[0].Path);
1195
Assert.Equal("DataCenter", rootCause.
Items
[0].Path[0]);
1204
foreach (KeyValuePair<string, object> pair in rootCause.
Items
[0].Dimension)