Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/23/20 16:21:55 (4 years ago)
Author:
abeham
Message:

#2521:

  • Moving solution creator parameter from problems to algorithms (breaking wiring in some HeuristicOptimizationProblems)
  • Disallowing evaluator or encoding changes in encoding-specific base problems (to avoid confusion in derived problems whether this needs to be handled or not)
  • Added private set to ReferenceParameter property (serialization)
Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveProblem.cs

    r17226 r17695  
    2020#endregion
    2121using System.Linq;
     22using HEAL.Attic;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
     
    2526using HeuristicLab.Optimization;
    2627using HeuristicLab.Parameters;
    27 using HEAL.Attic;
    2828
    2929namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
     
    3131  [StorableType("3CD66D22-59F2-43BA-A357-AA84C403EE61")]
    3232  [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 130)]
    33   public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator, ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem {
     33  public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator>, IClassificationProblem {
    3434    private const double PunishmentFactor = 10;
    3535    private const int InitialMaximumTreeDepth = 8;
     
    6565
    6666    public SymbolicClassificationMultiObjectiveProblem()
    67       : base(new ClassificationProblemData(), new SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) {
     67      : base(new ClassificationProblemData(), new SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator()) {
    6868      Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription));
    6969      Parameters.Add(new ValueParameter<ISymbolicClassificationModelCreator>(ModelCreatorParameterName, "", new AccuracyMaximizingThresholdsModelCreator()));
     
    140140
    141141      foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) {
    142         op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     142        //op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
    143143        op.QualityVariableName = Evaluator.QualitiesParameter.ActualName;
    144144
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs

    r17226 r17695  
    2020#endregion
    2121using System.Linq;
     22using HEAL.Attic;
    2223using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425using HeuristicLab.Optimization;
    2526using HeuristicLab.Parameters;
    26 using HEAL.Attic;
    2727
    2828namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
     
    3030  [StorableType("9C6166E7-9F34-403B-8654-22FFC77A2CAE")]
    3131  [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 120)]
    32   public class SymbolicClassificationSingleObjectiveProblem : SymbolicDataAnalysisSingleObjectiveProblem<IClassificationProblemData, ISymbolicClassificationSingleObjectiveEvaluator, ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem {
     32  public class SymbolicClassificationSingleObjectiveProblem : SymbolicDataAnalysisSingleObjectiveProblem<IClassificationProblemData, ISymbolicClassificationSingleObjectiveEvaluator>, IClassificationProblem {
    3333    private const double PunishmentFactor = 10;
    3434    private const int InitialMaximumTreeDepth = 8;
     
    6363
    6464    public SymbolicClassificationSingleObjectiveProblem()
    65       : base(new ClassificationProblemData(), new SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) {
     65      : base(new ClassificationProblemData(), new SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator()) {
    6666      Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription));
    6767      Parameters.Add(new ValueParameter<ISymbolicClassificationModelCreator>(ModelCreatorParameterName, "", new AccuracyMaximizingThresholdsModelCreator()));
     
    150150
    151151      foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) {
    152         op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     152        //op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
    153153        op.QualityVariableName = Evaluator.QualityParameter.ActualName;
    154154
Note: See TracChangeset for help on using the changeset viewer.