Changeset 10073 for branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicDataAnalysisEvaluator.cs
- Timestamp:
- 10/20/13 20:18:38 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GrammaticalEvolution/HeuristicLab.Problems.GrammaticalEvolution/Symbolic/GESymbolicDataAnalysisEvaluator.cs
r10072 r10073 26 26 using HeuristicLab.Core; 27 27 using HeuristicLab.Data; 28 using HeuristicLab.Encodings.IntegerVectorEncoding; 28 29 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 29 30 using HeuristicLab.Operators; … … 31 32 using HeuristicLab.Parameters; 32 33 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 34 using HeuristicLab.Problems.DataAnalysis; 35 using HeuristicLab.Problems.DataAnalysis.Symbolic; 36 using HeuristicLab.Problems.GrammaticalEvolution.Mappers; 33 37 using HeuristicLab.Random; 34 38 35 namespace HeuristicLab.Problems. DataAnalysis.Symbolic{39 namespace HeuristicLab.Problems.GrammaticalEvolution { 36 40 [StorableClass] 37 public abstract class SymbolicDataAnalysisEvaluator<T> : SingleSuccessorOperator,38 I SymbolicDataAnalysisEvaluator<T>, ISymbolicDataAnalysisInterpreterOperator, ISymbolicDataAnalysisBoundedOperator, IStochasticOperator41 public abstract class GESymbolicDataAnalysisEvaluator<T> : SingleSuccessorOperator, 42 IGESymbolicDataAnalysisEvaluator<T>, ISymbolicDataAnalysisInterpreterOperator, ISymbolicDataAnalysisBoundedOperator, IStochasticOperator 39 43 where T : class, IDataAnalysisProblemData { 40 44 private const string RandomParameterName = "Random"; … … 42 46 private const string SymbolicDataAnalysisTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter"; 43 47 private const string ProblemDataParameterName = "ProblemData"; 48 private const string IntegerVectorParameterName = "IntegerVector"; 49 private const string GenotypeToPhenotypeMapperParameterName = "GenotypeToPhenotypeMapper"; 50 private const string SymbolicExpressionTreeGrammarParameterName = "SymbolicExpressionTreeGrammar"; 51 44 52 private const string EstimationLimitsParameterName = "EstimationLimits"; 45 53 private const string EvaluationPartitionParameterName = "EvaluationPartition"; … … 67 75 get { return (IValueLookupParameter<T>)Parameters[ProblemDataParameterName]; } 68 76 } 77 public ILookupParameter<IntegerVector> IntegerVectorParameter { 78 get { return (ILookupParameter<IntegerVector>)Parameters[IntegerVectorParameterName]; } 79 } 80 public ILookupParameter<IGenotypeToPhenotypeMapper> GenotypeToPhenotypeMapperParameter { 81 get { return (ILookupParameter<IGenotypeToPhenotypeMapper>)Parameters[GenotypeToPhenotypeMapperParameterName]; } 82 } 83 public IValueLookupParameter<ISymbolicDataAnalysisGrammar> SymbolicExpressionTreeGrammarParameter { 84 get { return (IValueLookupParameter<ISymbolicDataAnalysisGrammar>)Parameters[SymbolicExpressionTreeGrammarParameterName]; } 85 } 69 86 70 87 public IValueLookupParameter<IntRange> EvaluationPartitionParameter { … … 87 104 88 105 [StorableConstructor] 89 protected SymbolicDataAnalysisEvaluator(bool deserializing) : base(deserializing) { }90 protected SymbolicDataAnalysisEvaluator(SymbolicDataAnalysisEvaluator<T> original, Cloner cloner)106 protected GESymbolicDataAnalysisEvaluator(bool deserializing) : base(deserializing) { } 107 protected GESymbolicDataAnalysisEvaluator(GESymbolicDataAnalysisEvaluator<T> original, Cloner cloner) 91 108 : base(original, cloner) { 92 109 } 93 public SymbolicDataAnalysisEvaluator()110 public GESymbolicDataAnalysisEvaluator() 94 111 : base() { 95 112 Parameters.Add(new ValueLookupParameter<IRandom>(RandomParameterName, "The random generator to use.")); … … 97 114 Parameters.Add(new LookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic data analysis solution encoded as a symbolic expression tree.")); 98 115 Parameters.Add(new ValueLookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated.")); 116 Parameters.Add(new LookupParameter<IntegerVector>(IntegerVectorParameterName, "The symbolic data analysis solution encoded as an integer vector genome.")); 117 Parameters.Add(new LookupParameter<IGenotypeToPhenotypeMapper>(GenotypeToPhenotypeMapperParameterName, "Maps the genotype (an integer vector) to the phenotype (a symbolic expression tree).")); 118 Parameters.Add(new ValueLookupParameter<ISymbolicDataAnalysisGrammar>(SymbolicExpressionTreeGrammarParameterName, "The tree grammar that defines the correct syntax of symbolic expression trees that should be created.")); 119 99 120 Parameters.Add(new ValueLookupParameter<IntRange>(EvaluationPartitionParameterName, "The start index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); 100 121 Parameters.Add(new ValueLookupParameter<DoubleLimit>(EstimationLimitsParameterName, "The upper and lower limit that should be used as cut off value for the output values of symbolic data analysis trees."));
Note: See TracChangeset
for help on using the changeset viewer.