Changeset 13147 for stable/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessBase.cs
- Timestamp:
- 11/13/15 20:51:23 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 13118-13119
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis merged: 13118-13119
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessBase.cs
r13053 r13147 21 21 #endregion 22 22 23 using System;24 using System.Linq;25 23 using HeuristicLab.Algorithms.GradientDescent; 26 24 using HeuristicLab.Common; … … 31 29 using HeuristicLab.Parameters; 32 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 33 using HeuristicLab.PluginInfrastructure;34 31 using HeuristicLab.Problems.DataAnalysis; 35 32 … … 51 48 protected const string HyperparameterGradientsParameterName = "HyperparameterGradients"; 52 49 protected const string SolutionCreatorParameterName = "GaussianProcessSolutionCreator"; 50 protected const string ScaleInputValuesParameterName = "ScaleInputValues"; 53 51 54 52 public new IDataAnalysisProblem Problem { … … 72 70 public IValueParameter<BoolValue> SetSeedRandomlyParameter { 73 71 get { return (IValueParameter<BoolValue>)Parameters[SetSeedRandomlyParameterName]; } 72 } 73 public IFixedValueParameter<BoolValue> ScaleInputValuesParameter { 74 get { return (IFixedValueParameter<BoolValue>)Parameters[ScaleInputValuesParameterName]; } 74 75 } 75 76 #endregion … … 89 90 public int Seed { get { return SeedParameter.Value.Value; } set { SeedParameter.Value.Value = value; } } 90 91 public bool SetSeedRandomly { get { return SetSeedRandomlyParameter.Value.Value; } set { SetSeedRandomlyParameter.Value.Value = value; } } 92 93 public bool ScaleInputValues { 94 get { return ScaleInputValuesParameter.Value.Value; } 95 set { ScaleInputValuesParameter.Value.Value = value; } 96 } 91 97 #endregion 92 98 … … 107 113 Parameters.Add(new ValueParameter<BoolValue>(ApproximateGradientsParameterName, "Indicates that gradients should not be approximated (necessary for LM-BFGS).", new BoolValue(false))); 108 114 Parameters[ApproximateGradientsParameterName].Hidden = true; // should not be changed 115 116 Parameters.Add(new FixedValueParameter<BoolValue>(ScaleInputValuesParameterName, 117 "Determines if the input variable values are scaled to the range [0..1] for training.", new BoolValue(true))); 118 Parameters[ScaleInputValuesParameterName].Hidden = true; 109 119 110 120 // necessary for BFGS … … 191 201 Parameters["Maximization"].Hidden = true; 192 202 } 203 204 if (!Parameters.ContainsKey(ScaleInputValuesParameterName)) { 205 Parameters.Add(new FixedValueParameter<BoolValue>(ScaleInputValuesParameterName, 206 "Determines if the input variable values are scaled to the range [0..1] for training.", new BoolValue(true))); 207 Parameters[ScaleInputValuesParameterName].Hidden = true; 208 } 193 209 #endregion 194 210 }
Note: See TracChangeset
for help on using the changeset viewer.