Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12030


Ignore:
Timestamp:
02/17/15 21:18:40 (10 years ago)
Author:
bburlacu
Message:

#2326: Added PreBuildEvent.cmd and fixed error.

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  
    3131
    3232namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers {
    33   [Item("SymbolicDataAnalysisPhenotypicDiversityAnalyzer", "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")]
    3434  [StorableClass]
    3535  public class SymbolicClassificationPhenotypicDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer {
     
    105105      if (UseClassValues) {
    106106        var problemData = ProblemDataParameter.ActualValue;
    107         var evaluatedValues = new ItemArray<DoubleArray>();
     107        var evaluatedValues = new ItemArray<DoubleArray>(trees.Length);
    108108        for (int i = 0; i < trees.Length; ++i) {
    109109          var t = trees[i];
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs

    r12012 r12030  
    2424using HeuristicLab.Parameters;
    2525using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     26using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers;
    2627
    2728namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
     
    115116      Operators.Add(new SymbolicClassificationSingleObjectiveTrainingParetoBestSolutionAnalyzer());
    116117      Operators.Add(new SymbolicClassificationSingleObjectiveValidationParetoBestSolutionAnalyzer());
     118      Operators.Add(new SymbolicClassificationPhenotypicDiversityAnalyzer());
    117119      ParameterizeOperators();
    118120    }
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionPhenotypicDiversityAnalyzer.cs

    r12029 r12030  
    3030
    3131namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers {
    32   [Item("SymbolicDataAnalysisPhenotypicDiversityAnalyzer", "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")]
    3333  [StorableClass]
    3434  public class SymbolicRegressionPhenotypicDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer {
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs

    r12012 r12030  
    2525using HeuristicLab.Parameters;
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers;
    2728
    2829namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression {
     
    111112      Operators.Add(new SymbolicRegressionSingleObjectiveValidationParetoBestSolutionAnalyzer());
    112113      Operators.Add(new SymbolicRegressionSolutionsAnalyzer());
     114      Operators.Add(new SymbolicRegressionPhenotypicDiversityAnalyzer());
    113115
    114116      ParameterizeOperators();
  • branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs

    r12029 r12030  
    233233      Operators.Add(new SymbolicExpressionTreeLengthAnalyzer());
    234234      Operators.Add(new SymbolicDataAnalysisBottomUpDiversityAnalyzer());
    235       Operators.Add(new SymbolicDataAnalysisPhenotypicDiversityAnalyzer());
    236235      ParameterizeOperators();
    237236    }
     
    353352        op.EvaluatorParameter.ActualName = EvaluatorParameter.Name;
    354353      }
    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       }
    367354    }
    368355
Note: See TracChangeset for help on using the changeset viewer.