Changeset 13066 for trunk/sources
- Timestamp:
- 10/27/15 08:49:57 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModelSurrogate.cs
r13065 r13066 36 36 // don't store the actual model! 37 37 private IRegressionModel actualModel; // the actual model is only recalculated when necessary 38 public IRegressionModel Model { get { return actualModel; } } 38 39 39 40 [Storable] -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Algorithms.DataAnalysis-3.4/GradientBoostingTest.cs
r12710 r13066 269 269 problemData.TestPartition.End = nRows; 270 270 var solution = GradientBoostedTreesAlgorithmStatic.TrainGbm(problemData, new SquaredErrorLoss(), maxSize, nu: 1, r: 1, m: 1, maxIterations: 1, randSeed: 31415); 271 var model = (GradientBoostedTreesModel) solution.Model;271 var model = (GradientBoostedTreesModel)((GradientBoostedTreesModelSurrogate)solution.Model).Model; 272 272 var treeM = model.Models.Skip(1).First() as RegressionTreeModel; 273 273
Note: See TracChangeset
for help on using the changeset viewer.