Changeset 12635 for branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions
- Timestamp:
- 07/07/15 12:37:11 (9 years ago)
- Location:
- branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/AbsoluteErrorLoss.cs
r12607 r12635 84 84 res[i - startIdx] = targetArr[row] - predArr[row]; 85 85 } 86 return res.Median(); 86 return res.Median(); // TODO: improve efficiency 87 87 }; 88 88 return lineSearch; -
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/RelativeErrorLoss.cs
r12607 r12635 100 100 totalWeight += w; 101 101 } 102 // TODO: improve efficiency (find median without sort) 102 103 res_w.StableSort((a, b) => Math.Sign(a.Key - b.Key)); 103 104
Note: See TracChangeset
for help on using the changeset viewer.