Changeset 10263 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveProblem.cs
- Timestamp:
- 12/20/13 16:17:52 (11 years ago)
- Location:
- branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution
- Property svn:ignore
-
old new 2 2 *.Settings 3 3 Plugin.cs 4 *.user 5 bin
-
- Property svn:ignore
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveProblem.cs
r10226 r10263 61 61 62 62 public GESymbolicRegressionSingleObjectiveProblem() 63 : base(new RegressionProblemData(), new GESymbolicRegressionSingleObjective PearsonRSquaredEvaluator(), new UniformRandomIntegerVectorCreator()) {63 : base(new RegressionProblemData(), new GESymbolicRegressionSingleObjectiveEvaluator(), new UniformRandomIntegerVectorCreator()) { 64 64 Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription)); 65 65 … … 81 81 private void AfterDeserialization() { 82 82 RegisterEventHandlers(); 83 // compatibility84 bool changed = false;85 if (!Operators.OfType<SymbolicRegressionSingleObjectiveTrainingParetoBestSolutionAnalyzer>().Any()) {86 Operators.Add(new SymbolicRegressionSingleObjectiveTrainingParetoBestSolutionAnalyzer());87 changed = true;88 }89 if (!Operators.OfType<SymbolicRegressionSingleObjectiveValidationParetoBestSolutionAnalyzer>().Any()) {90 Operators.Add(new SymbolicRegressionSingleObjectiveValidationParetoBestSolutionAnalyzer());91 changed = true;92 }93 if (changed) {94 ParameterizeOperators();95 }96 83 } 97 84
Note: See TracChangeset
for help on using the changeset viewer.