Changeset 11254


Ignore:
Timestamp:
08/01/14 16:20:57 (8 years ago)
Author:
bburlacu
Message:

#2215: Do not add the BottomUpSimilarityCalculator to the problem operators collection. Add it directly to the diversity analyzer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r11239 r11254  
    234234      Operators.Add(new SymbolicExpressionTreeLengthAnalyzer());
    235235      Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());
    236       Operators.Add(new BottomUpTreeSimilarityCalculator());
    237236      ParameterizeOperators();
    238237    }
     
    359358      }
    360359      foreach (var op in operators.OfType<SingleObjectivePopulationDiversityAnalyzer>()) {
    361         op.SimilarityCalculator = operators.OfType<BottomUpTreeSimilarityCalculator>().SingleOrDefault();
     360        op.SimilarityCalculator = new BottomUpTreeSimilarityCalculator();
    362361      }
    363362    }
Note: See TracChangeset for help on using the changeset viewer.