Changeset 12590 for branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithmStatic.cs
- Timestamp:
- 07/04/15 16:03:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithmStatic.cs
r12371 r12590 25 25 using System.Diagnostics.Contracts; 26 26 using System.Linq; 27 using GradientBoostedTrees;28 27 using HeuristicLab.Problems.DataAnalysis; 29 28 using HeuristicLab.Random; … … 34 33 35 34 public interface IGbmState { 36 37 35 IRegressionModel GetModel(); 38 36 double GetTrainLoss(); … … 42 40 43 41 // created through factory method 42 // GbmState details are private API users can only use methods from IGbmState 44 43 private class GbmState : IGbmState { 45 44 internal IRegressionProblemData problemData { get; set; } 46 internal MersenneTwister random { get; set; }45 internal MersenneTwister random { get; private set; } 47 46 internal ILossFunction lossFunction { get; set; } 48 47 internal int maxDepth { get; set; } … … 50 49 internal double r { get; set; } 51 50 internal double m { get; set; } 52 internal RegressionTreeBuilder treeBuilder;51 internal readonly RegressionTreeBuilder treeBuilder; 53 52 54 53 … … 156 155 } 157 156 158 // allow dynamic adaptation of maxDepth, nu and r 157 // allow dynamic adaptation of maxDepth, nu and r (even though this is not used) 159 158 public static void MakeStep(IGbmState state, int maxDepth, double nu, double r, double m) { 160 159 var gbmState = state as GbmState;
Note: See TracChangeset
for help on using the changeset viewer.