Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/01/17 10:41:20 (7 years ago)
Author:
gkronber
Message:

#2690 added a model view for GBT models and renamed the existing evaluation view accordingly. Deleted GBT solution view because it is not necessary anymore.

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  
    3131namespace HeuristicLab.Algorithms.DataAnalysis {
    3232  [StorableClass]
    33   [Item("Gradient boosted tree model", "")]
     33  [Item("Gradient boosted trees model", "")]
    3434  // this is essentially a collection of weighted regression models
    3535  public sealed class GradientBoostedTreesModel : RegressionModel, IGradientBoostedTreesModel {
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs

    r14345 r15105  
    219219    /// <returns>A new symbolic regression solution which matches the tree model</returns>
    220220    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() {
    221229      var rootSy = new ProgramRootSymbol();
    222230      var startSy = new StartSymbol();
     
    228236      var rootNode = rootSy.CreateTreeNode();
    229237      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());
    232239    }
    233240
Note: See TracChangeset for help on using the changeset viewer.