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