Changeset 15105 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis
- Timestamp:
- 07/01/17 10:41:20 (7 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModel.cs
r14185 r15105 31 31 namespace HeuristicLab.Algorithms.DataAnalysis { 32 32 [StorableClass] 33 [Item("Gradient boosted tree model", "")]33 [Item("Gradient boosted trees model", "")] 34 34 // this is essentially a collection of weighted regression models 35 35 public sealed class GradientBoostedTreesModel : RegressionModel, IGradientBoostedTreesModel { -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs
r14345 r15105 219 219 /// <returns>A new symbolic regression solution which matches the tree model</returns> 220 220 public ISymbolicRegressionSolution CreateSymbolicRegressionSolution(IRegressionProblemData problemData) { 221 return CreateSymbolicRegressionModel().CreateRegressionSolution(problemData); 222 } 223 224 /// <summary> 225 /// Transforms the tree model to a symbolic regression model 226 /// </summary> 227 /// <returns>A new symbolic regression model which matches the tree model</returns> 228 public SymbolicRegressionModel CreateSymbolicRegressionModel() { 221 229 var rootSy = new ProgramRootSymbol(); 222 230 var startSy = new StartSymbol(); … … 228 236 var rootNode = rootSy.CreateTreeNode(); 229 237 rootNode.AddSubtree(startNode); 230 var model = new SymbolicRegressionModel(TargetVariable, new SymbolicExpressionTree(rootNode), new SymbolicDataAnalysisExpressionTreeLinearInterpreter()); 231 return model.CreateRegressionSolution(problemData); 238 return new SymbolicRegressionModel(TargetVariable, new SymbolicExpressionTree(rootNode), new SymbolicDataAnalysisExpressionTreeLinearInterpreter()); 232 239 } 233 240
Note: See TracChangeset
for help on using the changeset viewer.