Changeset 12049 for branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
- Timestamp:
- 02/21/15 15:55:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r12030 r12049 119 119 set { ProblemDataParameter.Value = value; } 120 120 } 121 122 121 public ISymbolicDataAnalysisGrammar SymbolicExpressionTreeGrammar { 123 122 get { return SymbolicExpressionTreeGrammarParameter.Value; } … … 128 127 set { SymbolicExpressionTreeInterpreterParameter.Value = value; } 129 128 } 130 131 129 public IntValue MaximumSymbolicExpressionTreeDepth { 132 130 get { return MaximumSymbolicExpressionTreeDepthParameter.Value; } … … 144 142 get { return RelativeNumberOfEvaluatedSamplesParameter.Value; } 145 143 } 146 147 144 public IntRange FitnessCalculationPartition { 148 145 get { return FitnessCalculationPartitionParameter.Value; } … … 352 349 op.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 353 350 } 351 foreach (var op in operators.OfType<SymbolicDataAnalysisBottomUpDiversityAnalyzer>()) { 352 var sim = op.SimilarityCalculator as SymbolicExpressionTreeBottomUpSimilarityCalculator; 353 if (sim == null) { 354 op.SimilarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator { 355 SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName 356 }; 357 } else { 358 sim.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 359 } 360 } 354 361 } 355 362
Note: See TracChangeset
for help on using the changeset viewer.