Changeset 8206 for branches/GP-MoveOperators/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/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.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveProblem.cs
r8085 r8206 49 49 [StorableConstructor] 50 50 protected SymbolicClassificationMultiObjectiveProblem(bool deserializing) : base(deserializing) { } 51 protected SymbolicClassificationMultiObjectiveProblem(SymbolicClassificationMultiObjectiveProblem original, Cloner cloner) : base(original, cloner) { } 51 protected SymbolicClassificationMultiObjectiveProblem(SymbolicClassificationMultiObjectiveProblem original, Cloner cloner) 52 : base(original, cloner) { 53 RegisterEventHandlers(); 54 } 52 55 public override IDeepCloneable Clone(Cloner cloner) { return new SymbolicClassificationMultiObjectiveProblem(this, cloner); } 53 56 … … 62 65 MaximumSymbolicExpressionTreeLength.Value = InitialMaximumTreeLength; 63 66 64 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols();65 67 68 RegisterEventHandlers(); 66 69 ConfigureGrammarSymbols(); 67 70 InitializeOperators(); 68 71 UpdateEstimationLimits(); 72 } 73 74 [StorableHook(HookType.AfterDeserialization)] 75 private void AfterDeserialization() { 76 RegisterEventHandlers(); 77 } 78 79 private void RegisterEventHandlers() { 80 SymbolicExpressionTreeGrammarParameter.ValueChanged += (o, e) => ConfigureGrammarSymbols(); 69 81 } 70 82 … … 81 93 82 94 private void UpdateEstimationLimits() { 83 if (ProblemData.TrainingIndi zes.Any()) {84 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndi zes).ToList();95 if (ProblemData.TrainingIndices.Any()) { 96 var targetValues = ProblemData.Dataset.GetDoubleValues(ProblemData.TargetVariable, ProblemData.TrainingIndices).ToList(); 85 97 var mean = targetValues.Average(); 86 98 var range = targetValues.Max() - targetValues.Min();
Note: See TracChangeset
for help on using the changeset viewer.