Changeset 5365
- Timestamp:
- 01/24/11 17:12:08 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Classification/3.3/Symbolic/SymbolicClassificationProblem.cs
r5333 r5365 199 199 ParameterizeEvaluator(); 200 200 ParameterizeAnalyzers(); 201 ParameterizeProblem(); 201 202 base.OnEvaluatorChanged(); 202 203 } … … 340 341 } 341 342 } 343 344 private void ParameterizeProblem() { 345 if (Maximization != null) { 346 Maximization.Value = Evaluator.Maximization; 347 } else { 348 Maximization = new BoolValue(Evaluator.Maximization); 349 } 350 } 342 351 #endregion 343 352 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SingleObjectiveSymbolicRegressionEvaluator.cs
r4722 r5365 87 87 #endregion 88 88 #region properties 89 public abstract bool Maximization { get; } 90 89 91 public IRandom Random { 90 92 get { return RandomParameter.ActualValue; } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SymbolicRegressionMeanSquaredErrorEvaluator.cs
r4722 r5365 33 33 [StorableClass] 34 34 public class SymbolicRegressionMeanSquaredErrorEvaluator : SingleObjectiveSymbolicRegressionEvaluator { 35 36 public override bool Maximization { 37 get { return false; } 38 } 35 39 36 40 [StorableConstructor] -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SymbolicRegressionPearsonsRSquaredEvaluator.cs
r4722 r5365 33 33 [StorableClass] 34 34 public class SymbolicRegressionPearsonsRSquaredEvaluator : SingleObjectiveSymbolicRegressionEvaluator { 35 36 public override bool Maximization { 37 get { return true; } 38 } 39 35 40 [StorableConstructor] 36 41 protected SymbolicRegressionPearsonsRSquaredEvaluator(bool deserializing) : base(deserializing) { } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Interfaces/ISymbolicRegressionEvaluator.cs
r4722 r5365 29 29 namespace HeuristicLab.Problems.DataAnalysis.Regression.Symbolic { 30 30 public interface ISymbolicRegressionEvaluator : ISingleObjectiveEvaluator { 31 bool Maximization { get; } 32 31 33 ILookupParameter<ISymbolicExpressionTreeInterpreter> SymbolicExpressionTreeInterpreterParameter { get; } 32 34 ILookupParameter<SymbolicExpressionTree> SymbolicExpressionTreeParameter { get; } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblem.cs
r5331 r5365 124 124 ParameterizeEvaluator(); 125 125 ParameterizeAnalyzers(); 126 ParameterizeProblem(); 126 127 RaiseEvaluatorChanged(e); 127 128 } … … 192 193 } 193 194 } 195 196 private void ParameterizeProblem() { 197 if (MaximizationParameter.Value != null) { 198 MaximizationParameter.Value.Value = Evaluator.Maximization; 199 } else { 200 MaximizationParameter.Value = new BoolValue(Evaluator.Maximization); 201 } 202 } 194 203 #endregion 195 204 }
Note: See TracChangeset
for help on using the changeset viewer.