Changeset 13118 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessModelCreator.cs
- Timestamp:
- 11/05/15 07:46:38 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessModelCreator.cs
r12012 r13118 38 38 private const string NegativeLogLikelihoodParameterName = "NegativeLogLikelihood"; 39 39 private const string HyperparameterGradientsParameterName = "HyperparameterGradients"; 40 protected const string ScaleInputValuesParameterName = "ScaleInputValues"; 40 41 41 42 #region Parameter Properties … … 60 61 get { return (ILookupParameter<DoubleValue>)Parameters[NegativeLogLikelihoodParameterName]; } 61 62 } 62 63 public ILookupParameter<BoolValue> ScaleInputValuesParameter { 64 get { return (ILookupParameter<BoolValue>)Parameters[ScaleInputValuesParameterName]; } 65 } 63 66 #endregion 64 67 … … 67 70 protected IMeanFunction MeanFunction { get { return MeanFunctionParameter.ActualValue; } } 68 71 protected ICovarianceFunction CovarianceFunction { get { return CovarianceFunctionParameter.ActualValue; } } 72 public bool ScaleInputValues { get { return ScaleInputValuesParameter.ActualValue.Value; } } 69 73 #endregion 70 74 … … 82 86 Parameters.Add(new LookupParameter<RealVector>(HyperparameterGradientsParameterName, "The gradients of the hyperparameters for the produced Gaussian process model (necessary for hyperparameter optimization)")); 83 87 Parameters.Add(new LookupParameter<DoubleValue>(NegativeLogLikelihoodParameterName, "The negative log-likelihood of the produced Gaussian process model given the data.")); 88 89 90 Parameters.Add(new LookupParameter<BoolValue>(ScaleInputValuesParameterName, 91 "Determines if the input variable values are scaled to the range [0..1] for training.")); 92 Parameters[ScaleInputValuesParameterName].Hidden = true; 93 } 94 95 [StorableHook(HookType.AfterDeserialization)] 96 private void AfterDeserialization() { 97 if (!Parameters.ContainsKey(ScaleInputValuesParameterName)) { 98 Parameters.Add(new LookupParameter<BoolValue>(ScaleInputValuesParameterName, 99 "Determines if the input variable values are scaled to the range [0..1] for training.")); 100 Parameters[ScaleInputValuesParameterName].Hidden = true; 101 } 84 102 } 85 103 }
Note: See TracChangeset
for help on using the changeset viewer.