Changeset 12660
- Timestamp:
- 07/07/15 17:46:58 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModel.cs
r12591 r12660 63 63 public IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) { 64 64 // allocate target array go over all models and add up weighted estimation for each row 65 if (!rows.Any()) return Enumerable.Empty<double>(); // return immediately if rows is empty. This prevents multiple iteration over lazy rows enumerable. 66 // (which essentially looks up indexes in a dictionary) 65 67 var res = new double[rows.Count()]; 66 if (res.Length == 0) return res; // return immediately if rows is empty. This prevents multiple iteration over lazy rows enumerable.67 // (which essentially looks up indexes in a dictionary)68 68 for (int i = 0; i < models.Count; i++) { 69 69 var w = weights[i];
Note: See TracChangeset
for help on using the changeset viewer.