- Timestamp:
- 04/22/21 14:59:58 (4 years ago)
- Location:
- trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Files:
-
- 4 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r17931 r17958 119 119 </ItemGroup> 120 120 <ItemGroup> 121 <Compile Include="MultiObjective\NMSEConstraintsEvaluator.cs" /> 121 <Compile Include="Interfaces\IMultiObjectiveConstaintsEvaluator.cs" /> 122 <Compile Include="MultiObjective\NMSEMultiObjectiveConstraintsEvaluator.cs" /> 122 123 <Compile Include="MultiObjective\PearsonRSquaredNestedTreeSizeEvaluator.cs" /> 123 124 <Compile Include="MultiObjective\PearsonRSquaredNumberOfVariablesEvaluator.cs" /> 124 125 <Compile Include="MultiObjective\PearsonRSquaredAverageSimilarityEvaluator.cs" /> 125 126 <Compile Include="MultiObjective\PearsonRSquaredTreeComplexityEvaluator.cs" /> 127 <Compile Include="MultiObjective\ShapeConstrainedRegressionMultiObjectiveProblem.cs" /> 126 128 <Compile Include="MultiObjective\SymbolicRegressionMultiObjectiveValidationBestSolutionAnalyzer.cs" /> 127 129 <Compile Include="Plugin.cs" /> 128 130 <Compile Include="ShapeConstraintsAnalyzer.cs" /> 129 131 <Compile Include="SingleObjective\ConstantOptimizationAnalyzer.cs" /> 130 <Compile Include="SingleObjective\Evaluators\NMSE ConstraintsEvaluator.cs" />132 <Compile Include="SingleObjective\Evaluators\NMSESingleObjectiveConstraintsEvaluator.cs" /> 131 133 <Compile Include="SingleObjective\Evaluators\SymbolicRegressionMeanRelativeErrorEvaluator.cs" /> 134 <Compile Include="SingleObjective\ShapeConstrainedRegressionSingleObjectiveProblem.cs" /> 132 135 <Compile Include="SingleObjective\SymbolicRegressionSolutionsAnalyzer.cs" /> 133 136 <Compile Include="SymbolicRegressionPhenotypicDiversityAnalyzer.cs" /> -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveProblem.cs
r17180 r17958 60 60 public override IDeepCloneable Clone(Cloner cloner) { return new SymbolicRegressionMultiObjectiveProblem(this, cloner); } 61 61 62 public SymbolicRegressionMultiObjectiveProblem() 63 : base(new RegressionProblemData(), new SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) { 62 public SymbolicRegressionMultiObjectiveProblem() : this(new RegressionProblemData(), new SymbolicRegressionMultiObjectivePearsonRSquaredTreeSizeEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) { } 63 public SymbolicRegressionMultiObjectiveProblem(IRegressionProblemData problemData, ISymbolicRegressionMultiObjectiveEvaluator evaluator, ISymbolicDataAnalysisSolutionCreator solutionCreator) 64 : base(problemData, evaluator, solutionCreator) { 64 65 Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription)); 65 66 -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ShapeConstraintsAnalyzer.cs
r17906 r17958 31 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { 32 32 [StorableType("4318C6BD-E0A1-45FE-AC30-96E7F73B51FB")] 33 [Item("ShapeConstraintsAnalyzer", "Analyzes the number of shape -constraint violations of symbolic regression models.")]33 [Item("ShapeConstraintsAnalyzer", "Analyzes the number of shape constraint violations of symbolic regression models.")] 34 34 public class ShapeConstraintsAnalyzer : SymbolicDataAnalysisAnalyzer, ISymbolicExpressionTreeAnalyzer { 35 35 private const string ProblemDataParameterName = "ProblemData"; … … 97 97 98 98 public override IOperation Apply() { 99 var problemData = RegressionProblemData;99 var problemData = (IShapeConstrainedRegressionProblemData)RegressionProblemData; 100 100 var trees = SymbolicExpressionTree.ToArray(); 101 101 … … 115 115 } 116 116 117 var constraintUnsatisfiedSolutionsDataTable = InfeasibleSolutions;118 if ( constraintUnsatisfiedSolutionsDataTable.Rows.Count == 0)119 constraintUnsatisfiedSolutionsDataTable.Rows.Add(new DataRow(InfeasibleSolutionsParameterName));117 var infeasibleSolutionsDataTable = InfeasibleSolutions; 118 if (infeasibleSolutionsDataTable.Rows.Count == 0) 119 infeasibleSolutionsDataTable.Rows.Add(new DataRow(InfeasibleSolutionsParameterName)); 120 120 121 constraintUnsatisfiedSolutionsDataTable.Rows[InfeasibleSolutionsParameterName]121 infeasibleSolutionsDataTable.Rows[InfeasibleSolutionsParameterName] 122 122 .Values 123 123 .Add(trees.Count(t => IntervalUtil.GetConstraintViolations(constraints, estimator, variableRanges, t).Any(x => x > 0.0))); -
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs
r17903 r17958 56 56 public override IDeepCloneable Clone(Cloner cloner) { return new SymbolicRegressionSingleObjectiveProblem(this, cloner); } 57 57 58 public SymbolicRegressionSingleObjectiveProblem() 59 : base(new RegressionProblemData(), new SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) { 58 public SymbolicRegressionSingleObjectiveProblem() : this(new RegressionProblemData(), new SymbolicRegressionSingleObjectivePearsonRSquaredEvaluator(), new SymbolicDataAnalysisExpressionTreeCreator()) { 59 } 60 public SymbolicRegressionSingleObjectiveProblem(IRegressionProblemData problemData, ISymbolicRegressionSingleObjectiveEvaluator evaluator, ISymbolicDataAnalysisSolutionCreator solutionCreator) : 61 base(problemData, evaluator, solutionCreator) { 62 60 63 Parameters.Add(new FixedValueParameter<DoubleLimit>(EstimationLimitsParameterName, EstimationLimitsParameterDescription)); 61 64
Note: See TracChangeset
for help on using the changeset viewer.