Changeset 18027 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/ShapeConstraintsAnalyzer.cs
- Timestamp:
- 07/20/21 18:13:55 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 4 edited
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/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)));
Note: See TracChangeset
for help on using the changeset viewer.