Changeset 12017 for branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers
- Timestamp:
- 02/16/15 16:52:52 (10 years ago)
- Location:
- branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisBottomUpDiversityAnalyzer.cs
r11965 r12017 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 4Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 21 21 22 22 using HeuristicLab.Analysis; 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 25 26 26 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers { 27 [Item("SymbolicDataAnalysisBottomUpDiversityAnalyzer", "A diversity analyzer based on the bottom-up similaritybetween trees.")]28 [Item("SymbolicDataAnalysisBottomUpDiversityAnalyzer", "A diversity analyzer based on the bottom-up distance between trees.")] 28 29 [StorableClass] 29 30 public class SymbolicDataAnalysisBottomUpDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer { … … 31 32 protected SymbolicDataAnalysisBottomUpDiversityAnalyzer(bool deserializing) : base(deserializing) { } 32 33 33 [StorableHook(HookType.AfterDeserialization)] 34 private void AfterDeserialization() { 34 private SymbolicDataAnalysisBottomUpDiversityAnalyzer(SymbolicDataAnalysisBottomUpDiversityAnalyzer original, Cloner cloner) 35 : base(original, cloner) { 36 } 37 38 public override IDeepCloneable Clone(Cloner cloner) { 39 return new SymbolicDataAnalysisBottomUpDiversityAnalyzer(this, cloner); 35 40 } 36 41 -
branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisPhenotypicDiversityAnalyzer.cs
r11291 r12017 22 22 using System.Linq; 23 23 using HeuristicLab.Analysis; 24 using HeuristicLab.Common; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Data; … … 29 30 30 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Analyzers { 31 [Item("SymbolicDataAnalysisPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic similaritybetween trees")]32 [Item("SymbolicDataAnalysisPhenotypicDiversityAnalyzer", "An analyzer which calculates diversity based on the phenotypic distance between trees")] 32 33 [StorableClass] 33 34 public class SymbolicDataAnalysisPhenotypicDiversityAnalyzer : SingleObjectivePopulationDiversityAnalyzer { 35 #region parameter names 34 36 private const string SymbolicExpressionTreeParameterName = "SymbolicExpressionTree"; 35 37 private const string EvaluatedValuesParameterName = "EstimatedValues"; … … 37 39 private const string ProblemDataParameterName = "ProblemData"; 38 40 private const string EstimationLimitsParameterName = "EstimationLimits"; 41 #endregion 39 42 43 #region parameter properties 40 44 public IScopeTreeLookupParameter<ISymbolicExpressionTree> SymbolicExpressionTreeParameter { 41 45 get { return (IScopeTreeLookupParameter<ISymbolicExpressionTree>)Parameters[SymbolicExpressionTreeParameterName]; } … … 56 60 get { return (IValueLookupParameter<DoubleLimit>)Parameters[EstimationLimitsParameterName]; } 57 61 } 62 #endregion 58 63 59 64 public SymbolicDataAnalysisPhenotypicDiversityAnalyzer() { 60 65 SimilarityCalculator = new PhenotypicSimilarityCalculator { SolutionVariableName = "SymbolicExpressionTree" }; 61 66 #region add parameters 62 67 Parameters.Add(new ScopeTreeLookupParameter<ISymbolicExpressionTree>(SymbolicExpressionTreeParameterName, "The symbolic expression trees.")); 63 68 Parameters.Add(new ScopeTreeLookupParameter<DoubleArray>(EvaluatedValuesParameterName, "Intermediate estimated values to be saved in the scopes.")); … … 65 70 Parameters.Add(new ValueLookupParameter<IDataAnalysisProblemData>(ProblemDataParameterName, "The problem data on which the symbolic data analysis solution should be evaluated.")); 66 71 Parameters.Add(new ValueLookupParameter<DoubleLimit>(EstimationLimitsParameterName, "The upper and lower limit that should be used as cut off value for the output values of symbolic data analysis trees.")); 72 #endregion 73 } 74 75 [StorableConstructor] 76 protected SymbolicDataAnalysisPhenotypicDiversityAnalyzer(bool deserializing) 77 : base(deserializing) { 78 } 79 80 public override IDeepCloneable Clone(Cloner cloner) { 81 return new SymbolicDataAnalysisPhenotypicDiversityAnalyzer(this, cloner); 82 } 83 84 private SymbolicDataAnalysisPhenotypicDiversityAnalyzer(SymbolicDataAnalysisPhenotypicDiversityAnalyzer original, Cloner cloner) 85 : base(original, cloner) { 67 86 } 68 87
Note: See TracChangeset
for help on using the changeset viewer.