Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/04/14 17:30:30 (10 years ago)
Author:
mkommend
Message:

#2234: Corrected locking in SVM Util class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorMachineUtil.cs

    r11339 r11342  
    104104        CalculateCrossValidationPartitions(partitions, parameters, out testMse);
    105105        if (testMse < mse.Value) {
    106           lock (mse) { mse.Value = testMse; }
    107           lock (bestParam) { bestParam = (svm_parameter)parameters.Clone(); }
     106          lock (mse) {
     107            mse.Value = testMse;
     108            bestParam = (svm_parameter)parameters.Clone();
     109          }
    108110        }
    109111      });
Note: See TracChangeset for help on using the changeset viewer.