diff --git a/src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs b/src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs index 748dbeb607..cb48028229 100644 --- a/src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs +++ b/src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs @@ -481,7 +481,8 @@ private IEnumerable OrderDimensions(SortedDictionary ordered = new List(); BestDimension best; - do { + do + { best = null; foreach (KeyValuePair dimension in valueMapAsList) @@ -492,7 +493,7 @@ private IEnumerable OrderDimensions(SortedDictionary 1) @@ -507,7 +508,7 @@ private IEnumerable OrderDimensions(SortedDictionary 1) { - best = GetBestDimension(best, dimension, valueRatioMap); + best = dimension.Key; } else if (best.AnomalyDis.Count == 1) {