Skip to content

Commit

Permalink
Fixing copy-paste error (#5269)
Browse files Browse the repository at this point in the history
  • Loading branch information
klausmh authored Jul 1, 2020
1 parent 1611f55 commit fa54370
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Microsoft.ML.TimeSeries/RootCauseAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ private IEnumerable<BestDimension> OrderDimensions(SortedDictionary<BestDimensio
List<BestDimension> ordered = new List<BestDimension>();

BestDimension best;
do {
do
{
best = null;

foreach (KeyValuePair<BestDimension, double> dimension in valueMapAsList)
Expand All @@ -492,7 +493,7 @@ private IEnumerable<BestDimension> OrderDimensions(SortedDictionary<BestDimensio
{
best = dimension.Key;
}
else if (dimension.Key.AnomalyDis.Count == 1)
else
{
bool isRatioNan = Double.IsNaN(valueRatioMap[best]);
if (dimension.Key.AnomalyDis.Count > 1)
Expand All @@ -507,7 +508,7 @@ private IEnumerable<BestDimension> OrderDimensions(SortedDictionary<BestDimensio

if (best.AnomalyDis.Count > 1)
{
best = GetBestDimension(best, dimension, valueRatioMap);
best = dimension.Key;
}
else if (best.AnomalyDis.Count == 1)
{
Expand Down

0 comments on commit fa54370

Please sign in to comment.