Changeset 12589
- Timestamp:
- 07/03/15 16:59:08 (9 years ago)
- Location:
- branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModel.cs
r12372 r12589 39 39 } 40 40 41 public IEnumerable<double> GetEstimatedValues( Dataset dataset, IEnumerable<int> rows) {41 public IEnumerable<double> GetEstimatedValues(IDataset dataset, IEnumerable<int> rows) { 42 42 var tuples = (from idx in Enumerable.Range(0, models.Count) 43 43 let model = models[idx] -
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs
r12375 r12589 56 56 } 57 57 58 private static double GetPredictionForRow(TreeNode[] t, int nodeIdx, Dataset ds, int row) {58 private static double GetPredictionForRow(TreeNode[] t, int nodeIdx, IDataset ds, int row) { 59 59 var node = t[nodeIdx]; 60 60 if (node.varName == TreeNode.NO_VARIABLE) … … 70 70 } 71 71 72 public IEnumerable<double> GetEstimatedValues( Dataset ds, IEnumerable<int> rows) {72 public IEnumerable<double> GetEstimatedValues(IDataset ds, IEnumerable<int> rows) { 73 73 return rows.Select(r => GetPredictionForRow(tree, 0, ds, r)); 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.