Changeset 16220 for branches/2883_GBTModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModelSurrogate.cs
- Timestamp:
- 10/08/18 16:07:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2883_GBTModelStorage/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModelSurrogate.cs
r15679 r16220 39 39 // the actual model is only recalculated when necessary 40 40 private readonly Lazy<IGradientBoostedTreesModel> actualModel; 41 private IGradientBoostedTreesModel ActualModel 42 { 41 private IGradientBoostedTreesModel ActualModel { 43 42 get { return actualModel.Value; } 44 43 } … … 62 61 63 62 64 public override IEnumerable<string> VariablesUsedForPrediction 65 { 66 get 67 { 63 public override IEnumerable<string> VariablesUsedForPrediction { 64 get { 68 65 return ActualModel.Models.SelectMany(x => x.VariablesUsedForPrediction).Distinct().OrderBy(x => x); 69 66 } … … 137 134 } 138 135 139 public IEnumerable<IRegressionModel> Models 140 { 141 get 142 { 136 public IEnumerable<IRegressionModel> Models { 137 get { 143 138 return ActualModel.Models; 144 139 } 145 140 } 146 141 147 public IEnumerable<double> Weights 148 { 149 get 150 { 142 public IEnumerable<double> Weights { 143 get { 151 144 return ActualModel.Weights; 152 145 }
Note: See TracChangeset
for help on using the changeset viewer.