Changeset 7506 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionCrossover.cs
- Timestamp:
- 02/23/12 16:05:57 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers
- Files:
-
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Crossovers/SymbolicDataAnalysisExpressionCrossover.cs
r7503 r7506 35 35 private const string SymbolicDataAnalysisTreeInterpreterParameterName = "SymbolicExpressionTreeInterpreter"; 36 36 private const string ProblemDataParameterName = "ProblemData"; 37 private const string EstimationLimitsParameterName = "EstimationLimits";38 37 private const string EvaluatorParameterName = "Evaluator"; 39 private const string SymbolicDataAnalysisEvaluationPartitionParameterName = "EvaluationPartition";38 private const string EvaluationPartitionParameterName = "EvaluationPartition"; 40 39 private const string RelativeNumberOfEvaluatedSamplesParameterName = "RelativeNumberOfEvaluatedSamples"; 41 40 private const string MaximumSymbolicExpressionTreeLengthParameterName = "MaximumSymbolicExpressionTreeLength"; … … 54 53 get { return (ILookupParameter<ISymbolicDataAnalysisSingleObjectiveEvaluator<T>>)Parameters[EvaluatorParameterName]; } 55 54 } 56 public IValueLookupParameter<IntRange> SymbolicDataAnalysisEvaluationPartitionParameter { 57 get { return (IValueLookupParameter<IntRange>)Parameters[SymbolicDataAnalysisEvaluationPartitionParameterName]; } 58 } 59 public IValueLookupParameter<DoubleLimit> EstimationLimitsParameter { 60 get { return (IValueLookupParameter<DoubleLimit>)Parameters[EstimationLimitsParameterName]; } 55 public IValueLookupParameter<IntRange> EvaluationPartitionParameter { 56 get { return (IValueLookupParameter<IntRange>)Parameters[EvaluationPartitionParameterName]; } 61 57 } 62 58 public IValueLookupParameter<PercentValue> RelativeNumberOfEvaluatedSamplesParameter { … … 90 86 Parameters.Add(new LookupParameter<ISymbolicDataAnalysisSingleObjectiveEvaluator<T>>(EvaluatorParameterName, "The single objective solution evaluator")); 91 87 Parameters.Add(new ValueLookupParameter<T>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated.")); 92 Parameters.Add(new ValueLookupParameter<IntRange>(SymbolicDataAnalysisEvaluationPartitionParameterName, "The start index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); 93 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.")); 88 Parameters.Add(new ValueLookupParameter<IntRange>(EvaluationPartitionParameterName, "The start index of the dataset partition on which the symbolic data analysis solution should be evaluated.")); 94 89 Parameters.Add(new ValueLookupParameter<PercentValue>(RelativeNumberOfEvaluatedSamplesParameterName, "The relative number of samples of the dataset partition, which should be randomly chosen for evaluation between the start and end index.")); 95 90 Parameters.Add(new ValueLookupParameter<IntValue>(MaximumSymbolicExpressionTreeDepthParameterName, "The maximum tree depth.")); … … 97 92 98 93 EvaluatorParameter.Hidden = true; 99 EstimationLimitsParameter.Hidden = true; 100 SymbolicDataAnalysisEvaluationPartitionParameter.Hidden = true; 94 EvaluationPartitionParameter.Hidden = true; 101 95 SymbolicDataAnalysisTreeInterpreterParameter.Hidden = true; 102 96 ProblemDataParameter.Hidden = true; … … 131 125 protected IEnumerable<int> GenerateRowsToEvaluate(double percentageOfRows) { 132 126 IEnumerable<int> rows; 133 int samplesStart = SymbolicDataAnalysisEvaluationPartitionParameter.ActualValue.Start;134 int samplesEnd = SymbolicDataAnalysisEvaluationPartitionParameter.ActualValue.End;127 int samplesStart = EvaluationPartitionParameter.ActualValue.Start; 128 int samplesEnd = EvaluationPartitionParameter.ActualValue.End; 135 129 int testPartitionStart = ProblemDataParameter.ActualValue.TestPartition.Start; 136 130 int testPartitionEnd = ProblemDataParameter.ActualValue.TestPartition.End;
Note: See TracChangeset
for help on using the changeset viewer.