Changeset 12632 for branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
- Timestamp:
- 07/07/15 11:57:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
r12620 r12632 49 49 #region ParameterNames 50 50 private const string IterationsParameterName = "Iterations"; 51 private const string Max DepthParameterName = "Maximum Tree Depth";51 private const string MaxSizeParameterName = "Maximum Tree Size"; 52 52 private const string NuParameterName = "Nu"; 53 53 private const string RParameterName = "R"; … … 64 64 get { return (IFixedValueParameter<IntValue>)Parameters[IterationsParameterName]; } 65 65 } 66 public IFixedValueParameter<IntValue> Max DepthParameter {67 get { return (IFixedValueParameter<IntValue>)Parameters[Max DepthParameterName]; }66 public IFixedValueParameter<IntValue> MaxSizeParameter { 67 get { return (IFixedValueParameter<IntValue>)Parameters[MaxSizeParameterName]; } 68 68 } 69 69 public IFixedValueParameter<DoubleValue> NuParameter { … … 106 106 set { SetSeedRandomlyParameter.Value.Value = value; } 107 107 } 108 public int Max Depth{109 get { return Max DepthParameter.Value.Value; }110 set { Max DepthParameter.Value.Value = value; }108 public int MaxSize { 109 get { return MaxSizeParameter.Value.Value; } 110 set { MaxSizeParameter.Value.Value = value; } 111 111 } 112 112 public double Nu { … … 155 155 Parameters.Add(new FixedValueParameter<IntValue>(SeedParameterName, "The random seed used to initialize the new pseudo random number generator.", new IntValue(0))); 156 156 Parameters.Add(new FixedValueParameter<BoolValue>(SetSeedRandomlyParameterName, "True if the random seed should be set to a random value, otherwise false.", new BoolValue(true))); 157 Parameters.Add(new FixedValueParameter<IntValue>(Max DepthParameterName, "Maximal depth of the tree learned in each step (prefer smaller depths if possible)", new IntValue(5)));157 Parameters.Add(new FixedValueParameter<IntValue>(MaxSizeParameterName, "Maximal size of the tree learned in each step (prefer smaller sizes if possible)", new IntValue(10))); 158 158 Parameters.Add(new FixedValueParameter<DoubleValue>(RParameterName, "Ratio of training rows selected randomly in each step (0 < R <= 1)", new DoubleValue(0.5))); 159 159 Parameters.Add(new FixedValueParameter<DoubleValue>(MParameterName, "Ratio of variables selected randomly in each step (0 < M <= 1)", new DoubleValue(0.5))); … … 189 189 var lossFunction = ApplicationManager.Manager.GetInstances<ILossFunction>() 190 190 .Single(l => l.ToString() == LossFunctionParameter.Value.Value); 191 var state = GradientBoostedTreesAlgorithmStatic.CreateGbmState(problemData, lossFunction, (uint)Seed, Max Depth, R, M, Nu);191 var state = GradientBoostedTreesAlgorithmStatic.CreateGbmState(problemData, lossFunction, (uint)Seed, MaxSize, R, M, Nu); 192 192 193 193 var updateInterval = UpdateIntervalParameter.Value.Value;
Note: See TracChangeset
for help on using the changeset viewer.