Changeset 12280 for stable/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 04/01/15 17:06:17 (10 years ago)
- Location:
- stable
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12069-12070,12076,12085,12087,12102,12106,12113,12126,12129
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic merged: 12069-12070
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r12009 r12280 233 233 Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer()); 234 234 Operators.Add(new SymbolicExpressionTreeLengthAnalyzer()); 235 Operators.Add(new SingleObjectivePopulationDiversityAnalyzer());235 Operators.Add(new PopulationSimilarityAnalyzer(new[] { new SymbolicExpressionTreeBottomUpSimilarityCalculator() })); 236 236 ParameterizeOperators(); 237 237 } … … 357 357 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 358 358 } 359 foreach (var op in operators.OfType<SingleObjectivePopulationDiversityAnalyzer>()) {360 op.SimilarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator();361 }362 359 } 363 360 -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeBottomUpSimilarityCalculator.cs
r11986 r12280 36 36 public class SymbolicExpressionTreeBottomUpSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 37 37 private readonly HashSet<string> commutativeSymbols = new HashSet<string> { "Addition", "Multiplication", "Average", "And", "Or", "Xor" }; 38 39 protected override bool IsCommutative { get { return true; } } 40 38 41 public SymbolicExpressionTreeBottomUpSimilarityCalculator() { } 39 42 -
stable/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator.cs
r12009 r12280 31 31 [Item("SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator", "A similarity calculator based on the size of the maximum common subtree between two trees")] 32 32 public class SymbolicExpressionTreeMaxCommonSubtreeSimilarityCalculator : SingleObjectiveSolutionSimilarityCalculator { 33 protected override bool IsCommutative { get { return true; } } 34 33 35 [Storable] 34 36 private readonly SymbolicExpressionTreeNodeEqualityComparer comparer;
Note: See TracChangeset
for help on using the changeset viewer.