Changeset 12697 for branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithmStatic.cs
- Timestamp:
- 07/09/15 16:39:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithmStatic.cs
r12696 r12697 81 81 activeIdx = Enumerable.Range(0, nRows).ToArray(); 82 82 83 var zeros = Enumerable.Repeat(0.0, nRows) ;84 double f0 = lossFunction. GetLineSearchFunc(y, zeros)(activeIdx, 0, nRows - 1); // initial constant value (mean for squared errors)83 var zeros = Enumerable.Repeat(0.0, nRows).ToArray(); 84 double f0 = lossFunction.LineSearch(y, zeros, activeIdx, 0, nRows - 1); // initial constant value (mean for squared errors) 85 85 pred = Enumerable.Repeat(f0, nRows).ToArray(); 86 86 predTest = Enumerable.Repeat(f0, problemData.TestIndices.Count()).ToArray(); … … 166 166 } 167 167 168 var tree = treeBuilder.CreateRegressionTreeForGradientBoosting(pseudoRes, maxSize, activeIdx, lossFunction.GetLineSearchFunc(y, yPred), r, m);168 var tree = treeBuilder.CreateRegressionTreeForGradientBoosting(pseudoRes, yPred, maxSize, activeIdx, lossFunction, r, m); 169 169 170 170 int i = 0;
Note: See TracChangeset
for help on using the changeset viewer.