Changeset 17509 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 04/14/20 12:00:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r17206 r17509 47 47 private const string TestNaNEvaluationsResultName = "Test NaN Evaluations"; 48 48 49 private const string IntervalEvaluationResultName = "Interval Evaluation";49 private const string ModelBoundsResultName = "Model Bounds"; 50 50 51 51 public new ISymbolicRegressionModel Model { … … 98 98 } 99 99 100 public IntervalCollection IntervalEvaluationCollection {101 get { return (IntervalCollection)this[ IntervalEvaluationResultName].Value; }102 private set { this[ IntervalEvaluationResultName].Value = value; }100 public IntervalCollection ModelBoundsCollection { 101 get { return (IntervalCollection)this[ModelBoundsResultName].Value; } 102 private set { this[ModelBoundsResultName].Value = value; } 103 103 } 104 104 … … 127 127 estimationLimitResults.Add(new Result(TestNaNEvaluationsResultName, "", new IntValue())); 128 128 Add(new Result(EstimationLimitsResultsResultName, "Results concerning the estimation limits of symbolic regression solution", estimationLimitResults)); 129 Add(new Result( IntervalEvaluationResultName, "Results concerning the derivation of symbolic regression solution", new IntervalCollection()));129 Add(new Result(ModelBoundsResultName, "Results concerning the derivation of symbolic regression solution", new IntervalCollection())); 130 130 RecalculateResults(); 131 131 } … … 147 147 estimationLimitResults.Add(new Result(TestNaNEvaluationsResultName, "", new IntValue())); 148 148 Add(new Result(EstimationLimitsResultsResultName, "Results concerning the estimation limits of symbolic regression solution", estimationLimitResults)); 149 Add(new Result(IntervalEvaluationResultName, "Results concerning the derivation of symbolic regression solution", new IntervalCollection())); 149 CalculateResults(); 150 } 151 152 if (!ContainsKey(ModelBoundsResultName)) { 153 Add(new Result(ModelBoundsResultName, "Results concerning the derivation of symbolic regression solution", new IntervalCollection())); 150 154 CalculateResults(); 151 155 } … … 171 175 TestNaNEvaluations = Model.Interpreter.GetSymbolicExpressionTreeValues(Model.SymbolicExpressionTree, ProblemData.Dataset, ProblemData.TestIndices).Count(double.IsNaN); 172 176 173 IntervalEvaluationCollection = CalculateModelIntervals(this); 177 //Check if the tree contains unknown symbols for the interval calculation 178 if (IntervalInterpreter.IsCompatible(Model.SymbolicExpressionTree)) 179 ModelBoundsCollection = CalculateModelIntervals(this); 174 180 } 175 181
Note: See TracChangeset
for help on using the changeset viewer.