Changeset 10290 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveEvaluator.cs
- Timestamp:
- 01/06/14 20:41:57 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicRegressionSingleObjectiveEvaluator.cs
r10280 r10290 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Data; 24 25 using HeuristicLab.Parameters; 25 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 34 35 public const string EvaluatorParameterName = "Evaluator"; 35 36 public const string RandomParameterName = "Random"; 37 public const string BoundsParameterName = "Bounds"; 38 public const string MaximumSymbolicExpressionTreeLengthParameterName = "MaximumSymbolicExpressionTreeLength"; 36 39 37 40 public IValueParameter<ISymbolicRegressionSingleObjectiveEvaluator> EvaluatorParameter { … … 40 43 public ILookupParameter<IRandom> RandomParameter { 41 44 get { return (ILookupParameter<IRandom>)Parameters[RandomParameterName]; } 45 } 46 public ILookupParameter<IntMatrix> BoundsParameter { 47 get { return (ILookupParameter<IntMatrix>)Parameters[BoundsParameterName]; } 48 } 49 public ILookupParameter<IntValue> MaximumSymbolicExpressionTreeLengthParameter { 50 get { return (ILookupParameter<IntValue>)Parameters[MaximumSymbolicExpressionTreeLengthParameterName]; } 42 51 } 43 52 … … 53 62 : base() { 54 63 Parameters.Add(new ValueParameter<ISymbolicRegressionSingleObjectiveEvaluator>(EvaluatorParameterName, "The symbolic regression evaluator that should be used to assess the quality of trees.", new SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator())); 64 Parameters.Add(new LookupParameter<IntMatrix>(BoundsParameterName, "The integer number range in which the single genomes of a genotype are created.")); 65 Parameters.Add(new LookupParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, "Genotype length.")); 55 66 } 56 67 … … 69 80 var tree = GenotypeToPhenotypeMapperParameter.ActualValue.Map( 70 81 RandomParameter.ActualValue, 82 BoundsParameter.ActualValue, 83 MaximumSymbolicExpressionTreeLengthParameter.ActualValue.Value, 71 84 SymbolicExpressionTreeGrammarParameter.ActualValue, 72 85 genotype
Note: See TracChangeset
for help on using the changeset viewer.