Changeset 11427
- Timestamp:
- 10/08/14 13:15:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorMachineUtil.cs
r11361 r11427 34 34 namespace HeuristicLab.Algorithms.DataAnalysis { 35 35 public class SupportVectorMachineUtil { 36 private static readonly object locker = new object(); 37 38 36 39 /// <summary> 37 40 /// Transforms <paramref name="problemData"/> into a data structure as needed by libSVM. … … 106 109 107 110 double testMse = CalculateCrossValidationPartitions(partitions, parameters); 108 if (testMse < mse.Value) {109 lock (mse) {111 lock (locker) { 112 if (testMse < mse.Value) { 110 113 mse.Value = testMse; 111 114 bestParam = (svm_parameter)parameters.Clone();
Note: See TracChangeset
for help on using the changeset viewer.