Changeset 15105
- Timestamp:
- 07/01/17 10:41:20 (7 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 deleted
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/GradientBoostedTreesModelEvaluationView.Designer.cs
r15104 r15105 21 21 22 22 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 23 partial class GradientBoostedTreesModel View {23 partial class GradientBoostedTreesModelEvaluationView { 24 24 /// <summary> 25 25 /// Required designer variable. … … 76 76 this.listBox.DoubleClick += new System.EventHandler(this.listBox_DoubleClick); 77 77 // 78 // GradientBoostedTreesModel View78 // GradientBoostedTreesModelEvaluationView 79 79 // 80 80 this.AllowDrop = true; … … 82 82 this.Controls.Add(this.viewHost); 83 83 this.Controls.Add(this.listBox); 84 this.Name = "GradientBoostedTreesModel View";84 this.Name = "GradientBoostedTreesModelEvaluationView"; 85 85 this.Size = new System.Drawing.Size(349, 289); 86 86 this.ResumeLayout(false); -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/GradientBoostedTreesModelEvaluationView.cs
r15104 r15105 28 28 29 29 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 30 [View("G radient boosted tree model")]30 [View("GBT Model Evaluation")] 31 31 [Content(typeof(GradientBoostedTreesSolution), false)] 32 public partial class GradientBoostedTreesModelView : DataAnalysisSolutionEvaluationView { 33 public override Image ViewImage { 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Function; } 35 } 36 32 public partial class GradientBoostedTreesModelEvaluationView : DataAnalysisSolutionEvaluationView { 37 33 public new GradientBoostedTreesSolution Content { 38 34 get { return (GradientBoostedTreesSolution)base.Content; } … … 46 42 } 47 43 48 public GradientBoostedTreesModel View()44 public GradientBoostedTreesModelEvaluationView() 49 45 : base() { 50 46 InitializeComponent(); -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/HeuristicLab.Algorithms.DataAnalysis.Views-3.4.csproj
r14826 r15105 125 125 </ItemGroup> 126 126 <ItemGroup> 127 <Compile Include="GradientBoostedTreesModelEvaluationView.cs"> 128 <SubType>UserControl</SubType> 129 </Compile> 130 <Compile Include="GradientBoostedTreesModelEvaluationView.Designer.cs"> 131 <DependentUpon>GradientBoostedTreesModelEvaluationView.cs</DependentUpon> 132 </Compile> 133 <Compile Include="GradientBoostedTreesModelView.cs"> 134 <SubType>UserControl</SubType> 135 </Compile> 136 <Compile Include="GradientBoostedTreesModelView.Designer.cs"> 137 <DependentUpon>GradientBoostedTreesModelView.cs</DependentUpon> 138 </Compile> 127 139 <Compile Include="OneFactorClassificationModelView.cs"> 128 140 <SubType>UserControl</SubType> … … 149 161 <DependentUpon>RandomForestRegressionSolutionView.cs</DependentUpon> 150 162 </Compile> 151 <Compile Include="GradientBoostedTreesModelView.cs">152 <SubType>UserControl</SubType>153 </Compile>154 <Compile Include="GradientBoostedTreesModelView.Designer.cs">155 <DependentUpon>GradientBoostedTreesModelView.cs</DependentUpon>156 </Compile>157 163 <Compile Include="MeanProdView.cs"> 158 164 <SubType>UserControl</SubType> … … 222 228 <Compile Include="SupportVectorMachineModelView.Designer.cs"> 223 229 <DependentUpon>SupportVectorMachineModelView.cs</DependentUpon> 224 </Compile>225 <Compile Include="GradientBoostedTreesSolutionView.cs">226 <SubType>UserControl</SubType>227 </Compile>228 <Compile Include="GradientBoostedTreesSolutionView.Designer.cs">229 <DependentUpon>GradientBoostedTreesSolutionView.cs</DependentUpon>230 230 </Compile> 231 231 </ItemGroup> -
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.