Changeset 12030 for branches/SymbolicExpressionTreeDiversityAnalyzers
- Timestamp:
- 02/17/15 21:18:40 (10 years ago)
- Location:
- branches/SymbolicExpressionTreeDiversityAnalyzers
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationPhenotypicDiversityAnalyzer.cs
r12029 r12030 31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers { 33 [Item("Symbolic DataAnalysisPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic distance between trees")]33 [Item("SymbolicClassificationPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic distance between trees")] 34 34 [StorableClass] 35 35 public class SymbolicClassificationPhenotypicDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer { … … 105 105 if (UseClassValues) { 106 106 var problemData = ProblemDataParameter.ActualValue; 107 var evaluatedValues = new ItemArray<DoubleArray>( );107 var evaluatedValues = new ItemArray<DoubleArray>(trees.Length); 108 108 for (int i = 0; i < trees.Length; ++i) { 109 109 var t = trees[i]; -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r12012 r12030 24 24 using HeuristicLab.Parameters; 25 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 26 using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers; 26 27 27 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 115 116 Operators.Add(new SymbolicClassificationSingleObjectiveTrainingParetoBestSolutionAnalyzer()); 116 117 Operators.Add(new SymbolicClassificationSingleObjectiveValidationParetoBestSolutionAnalyzer()); 118 Operators.Add(new SymbolicClassificationPhenotypicDiversityAnalyzer()); 117 119 ParameterizeOperators(); 118 120 } -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionPhenotypicDiversityAnalyzer.cs
r12029 r12030 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers { 32 [Item("Symbolic DataAnalysisPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic distance between trees")]32 [Item("SymbolicRegressionPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic distance between trees")] 33 33 [StorableClass] 34 34 public class SymbolicRegressionPhenotypicDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer { -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs
r12012 r12030 25 25 using HeuristicLab.Parameters; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers; 27 28 28 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { … … 111 112 Operators.Add(new SymbolicRegressionSingleObjectiveValidationParetoBestSolutionAnalyzer()); 112 113 Operators.Add(new SymbolicRegressionSolutionsAnalyzer()); 114 Operators.Add(new SymbolicRegressionPhenotypicDiversityAnalyzer()); 113 115 114 116 ParameterizeOperators(); -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r12029 r12030 233 233 Operators.Add(new SymbolicExpressionTreeLengthAnalyzer()); 234 234 Operators.Add(new SymbolicDataAnalysisBottomUpDiversityAnalyzer()); 235 Operators.Add(new SymbolicDataAnalysisPhenotypicDiversityAnalyzer());236 235 ParameterizeOperators(); 237 236 } … … 353 352 op.EvaluatorParameter.ActualName = EvaluatorParameter.Name; 354 353 } 355 foreach (var op in operators.OfType<SymbolicDataAnalysisBottomUpDiversityAnalyzer>()) {356 var similarityCalculator = new SymbolicExpressionTreeBottomUpSimilarityCalculator();357 similarityCalculator.QualityVariableName = "Quality";358 similarityCalculator.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;359 op.SimilarityCalculator = similarityCalculator;360 }361 foreach (var op in operators.OfType<SymbolicDataAnalysisPhenotypicDiversityAnalyzer>()) {362 var similarityCalculator = new SymbolicExpressionTreePhenotypicSimilarityCalculator();363 similarityCalculator.QualityVariableName = "Quality";364 similarityCalculator.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;365 op.SimilarityCalculator = similarityCalculator;366 }367 354 } 368 355
Note: See TracChangeset
for help on using the changeset viewer.