Changeset 16141 for branches/2817-BinPackingSpeedup/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleModel.cs
- Timestamp:
- 09/14/18 11:47:37 (6 years ago)
- Location:
- branches/2817-BinPackingSpeedup
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2817-BinPackingSpeedup
- Property svn:mergeinfo changed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:mergeinfo changed
-
branches/2817-BinPackingSpeedup/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleModel.cs
r16140 r16141 102 102 x[column] = inputData[row, column]; 103 103 } 104 alglib.mlpeprocess(mlpEnsemble, x, ref y); 104 // mlpeprocess writes data in mlpEnsemble and is therefore not thread-safe 105 lock (mlpEnsemble) { 106 alglib.mlpeprocess(mlpEnsemble, x, ref y); 107 } 105 108 yield return y[0]; 106 109 } … … 119 122 x[column] = inputData[row, column]; 120 123 } 121 alglib.mlpeprocess(mlpEnsemble, x, ref y); 124 // mlpeprocess writes data in mlpEnsemble and is therefore not thread-safe 125 lock (mlpEnsemble) { 126 alglib.mlpeprocess(mlpEnsemble, x, ref y); 127 } 122 128 // find class for with the largest probability value 123 129 int maxProbClassIndex = 0;
Note: See TracChangeset
for help on using the changeset viewer.