Changeset 8206 for branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective
- Timestamp:
- 07/03/12 16:46:35 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveProblem.cs
r8085 r8206 53 53 [StorableConstructor] 54 54 protected SymbolicRegressionMultiObjectiveProblem(bool deserializing) : base(deserializing) { } 55 protected SymbolicRegressionMultiObjectiveProblem(SymbolicRegressionMultiObjectiveProblem original, Cloner cloner) : base(original, cloner) { } 55 protected SymbolicRegressionMultiObjectiveProblem(SymbolicRegressionMultiObjectiveProblem original, Cloner cloner) 56 : base(original, cloner) { 57 RegisterEventHandlers(); 58 } 56 59 public override IDeepCloneable Clone(Cloner cloner) { return new SymbolicRegressionMultiObjectiveProblem(this, cloner); } 57 60 … … 66 69 MaximumSymbolicExpressionTreeLength.Value = InitialMaximumTreeLength; 67 70 68 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 69 71 RegisterEventHandlers(); 70 72 ConfigureGrammarSymbols(); 71 73 InitializeOperators(); 72 74 UpdateEstimationLimits(); 75 } 76 77 [StorableHook(HookType.AfterDeserialization)] 78 private void AfterDeserialization() { 79 RegisterEventHandlers(); 80 } 81 82 private void RegisterEventHandlers() { 83 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 73 84 } 74 85 … … 85 96 86 97 private void UpdateEstimationLimits() { 87 if (ProblemData.TrainingIndi zes.Any()) {88 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndi zes).ToList();98 if (ProblemData.TrainingIndices.Any()) { 99 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices).ToList(); 89 100 var mean = targetValues.Average(); 90 101 var range = targetValues.Max() - targetValues.Min();
Note: See TracChangeset
for help on using the changeset viewer.