Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 2 deleted
- 9 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression merged: 17931,17944,17958-17959,17964
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4 merged: 17931,17944,17958-17959,17964
- Property svn:mergeinfo changed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r17928 r18027 99 99 </PropertyGroup> 100 100 <ItemGroup> 101 <Reference Include="ALGLIB-3. 7.0, Version=3.7.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">101 <Reference Include="ALGLIB-3.17.0, Version=3.17.0.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL"> 102 102 <SpecificVersion>False</SpecificVersion> 103 <HintPath>..\..\bin\ALGLIB-3. 7.0.dll</HintPath>103 <HintPath>..\..\bin\ALGLIB-3.17.0.dll</HintPath> 104 104 <Private>False</Private> 105 105 </Reference> … … 119 119 </ItemGroup> 120 120 <ItemGroup> 121 <Compile Include="MultiObjective\NMSEConstraintsEvaluator.cs" /> 121 <Compile Include="Interfaces\IMultiObjectiveConstraintsEvaluator.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" /> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveProblem.cs
r17180 r18027 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 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/Plugin.cs.frame
r17184 r18027 28 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Regression","Provides classes to perform symbolic regression (single- or multiobjective).", "3.4.12.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.dll", PluginFileType.Assembly)] 30 [PluginDependency("HeuristicLab.ALGLIB", "3. 7.0")]30 [PluginDependency("HeuristicLab.ALGLIB", "3.17.0")] 31 31 [PluginDependency("HeuristicLab.Analysis", "3.3")] 32 32 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ShapeConstraintsAnalyzer.cs
r17928 r18027 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))); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs
r17928 r18027 270 270 try { 271 271 alglib.lsfitcreatefg(x, y, c, n, m, k, false, out state); 272 alglib.lsfitsetcond(state, 0.0, 0.0,maxIterations);272 alglib.lsfitsetcond(state, 0.0, maxIterations); 273 273 alglib.lsfitsetxrep(state, iterationCallback != null); 274 //alglib.lsfitsetgradientcheck(state, 0.001);275 274 alglib.lsfitfit(state, function_cx_1_func, function_cx_1_grad, xrep, rowEvaluationsCounter); 276 275 alglib.lsfitresults(state, out retVal, out c, out rep); … … 285 284 286 285 //retVal == -7 => constant optimization failed due to wrong gradient 287 if (retVal != -7) { 286 // -8 => optimizer detected NAN / INF in the target 287 // function and/ or gradient 288 if (retVal != -7 && retVal != -8) { 288 289 if (applyLinearScaling) { 289 290 var tmp = new double[c.Length - 2]; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveProblem.cs
r17928 r18027 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.