Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14468


Ignore:
Timestamp:
12/09/16 14:09:04 (7 years ago)
Author:
mkommend
Message:

#2717: Fixed race condition in feature correlcation calculation by moving the error variable inside the parallel foreach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/FeatureCorrelation/FeatureCorrelationCalculator.cs

    r14185 r14468  
    5050
    5151      IList<string> doubleVariableNames = dataset.DoubleVariables.ToList();
    52       OnlineCalculatorError error = OnlineCalculatorError.None;
     52
    5353      int length = doubleVariableNames.Count;
    5454      double[,] elements = new double[length, length];
     
    6868          var var2 = dataset.GetDoubleValues(doubleVariableNames[j], indices);
    6969
     70          OnlineCalculatorError error = OnlineCalculatorError.None;
    7071          if (bwInfo.IgnoreMissingValues) {
    7172            var filtered = FilterNaNValues(var1, var2);
     
    7879          }
    7980          elements[j, i] = elements[i, j];
     81        });
    8082
    81         });
    82         worker.ReportProgress((int)(((double)counter) / length * 100));
    8383      }
     84
    8485      e.Result = elements;
    8586      worker.ReportProgress(100);
Note: See TracChangeset for help on using the changeset viewer.