Changeset 17695 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 07/23/20 16:21:55 (4 years ago)
- 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 20 20 #endregion 21 21 using System.Linq; 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 25 26 using HeuristicLab.Optimization; 26 27 using HeuristicLab.Parameters; 27 using HEAL.Attic;28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 31 31 [StorableType("3CD66D22-59F2-43BA-A357-AA84C403EE61")] 32 32 [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 130)] 33 public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator , ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem {33 public class SymbolicClassificationMultiObjectiveProblem : SymbolicDataAnalysisMultiObjectiveProblem<IClassificationProblemData, ISymbolicClassificationMultiObjectiveEvaluator>, IClassificationProblem { 34 34 private const double PunishmentFactor = 10; 35 35 private const int InitialMaximumTreeDepth = 8; … … 65 65 66 66 public SymbolicClassificationMultiObjectiveProblem() 67 : base(new ClassificationProblemData(), new SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator() , new SymbolicDataAnalysisExpressionTreeCreator()) {67 : base(new ClassificationProblemData(), new SymbolicClassificationMultiObjectiveMeanSquaredErrorTreeSizeEvaluator()) { 68 68 Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription)); 69 69 Parameters.Add(new ValueParameter<ISymbolicClassificationModelCreator>(ModelCreatorParameterName, "", new AccuracyMaximizingThresholdsModelCreator())); … … 140 140 141 141 foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) { 142 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;142 //op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 143 143 op.QualityVariableName = Evaluator.QualitiesParameter.ActualName; 144 144 -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r17226 r17695 20 20 #endregion 21 21 using System.Linq; 22 using HEAL.Attic; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Parameters; 26 using HEAL.Attic;27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 30 30 [StorableType("9C6166E7-9F34-403B-8654-22FFC77A2CAE")] 31 31 [Creatable(CreatableAttribute.Categories.GeneticProgrammingProblems, Priority = 120)] 32 public class SymbolicClassificationSingleObjectiveProblem : SymbolicDataAnalysisSingleObjectiveProblem<IClassificationProblemData, ISymbolicClassificationSingleObjectiveEvaluator , ISymbolicDataAnalysisSolutionCreator>, IClassificationProblem {32 public class SymbolicClassificationSingleObjectiveProblem : SymbolicDataAnalysisSingleObjectiveProblem<IClassificationProblemData, ISymbolicClassificationSingleObjectiveEvaluator>, IClassificationProblem { 33 33 private const double PunishmentFactor = 10; 34 34 private const int InitialMaximumTreeDepth = 8; … … 63 63 64 64 public SymbolicClassificationSingleObjectiveProblem() 65 : base(new ClassificationProblemData(), new SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator() , new SymbolicDataAnalysisExpressionTreeCreator()) {65 : base(new ClassificationProblemData(), new SymbolicClassificationSingleObjectiveMeanSquaredErrorEvaluator()) { 66 66 Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription)); 67 67 Parameters.Add(new ValueParameter<ISymbolicClassificationModelCreator>(ModelCreatorParameterName, "", new AccuracyMaximizingThresholdsModelCreator())); … … 150 150 151 151 foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) { 152 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;152 //op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 153 153 op.QualityVariableName = Evaluator.QualityParameter.ActualName; 154 154
Note: See TracChangeset
for help on using the changeset viewer.