Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/14 17:30:01 (10 years ago)
Author:
bburlacu
Message:

#2215: Refactored the tree distance calculators as similarity calculators (extending SingleObjectiveSolutionSimilarityCalculator). Removed ISymbolicExpressionTreeDistanceCalculator interface. Made small performance enhancements to the BottomUpSimilarityCalculator. Added unit tests to check correctness and performance of bottom up similarity. Added SingleObjectivePopulationDiversityAnalyzer in the default operators list along with the BottomUpSimilarityCalculator.

Location:
branches/HeuristicLab.BottomUpTreeDistance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.BottomUpTreeDistance

    • Property svn:global-ignores set to
      bin
      TestResults
  • branches/HeuristicLab.BottomUpTreeDistance/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r11171 r11219  
    2323using System.Drawing;
    2424using System.Linq;
     25using HeuristicLab.Analysis;
    2526using HeuristicLab.Common;
    2627using HeuristicLab.Common.Resources;
     
    2930using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    3031using HeuristicLab.Optimization;
     32using HeuristicLab.Optimization.Operators;
    3133using HeuristicLab.Parameters;
    3234using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3335using HeuristicLab.PluginInfrastructure;
     36using HeuristicLab.Problems.DataAnalysis.Symbolic.SimilarityCalculators;
    3437using HeuristicLab.Problems.Instances;
    3538
     
    231234      Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer());
    232235      Operators.Add(new SymbolicExpressionTreeLengthAnalyzer());
     236      Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());
     237      Operators.Add(new BottomUpSimilarityCalculator());
    233238      ParameterizeOperators();
    234239    }
     
    350355        op.EvaluatorParameter.ActualName = EvaluatorParameter.Name;
    351356      }
     357      foreach (var op in operators.OfType<SingleObjectiveSolutionSimilarityCalculator>()) {
     358        op.QualityVariableName = "Quality";
     359        op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     360      }
     361      foreach (var op in operators.OfType<SingleObjectivePopulationDiversityAnalyzer>()) {
     362        op.SimilarityCalculator = operators.OfType<BottomUpSimilarityCalculator>().SingleOrDefault();
     363      }
    352364    }
    353365
Note: See TracChangeset for help on using the changeset viewer.