Changeset 16927 for branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression
- Timestamp:
- 05/08/19 15:55:01 (6 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r16921 r16927 72 72 var results = ResultCollectionParameter.ActualValue; 73 73 var constraints = problemData.IntervalConstraints.Constraints.Where(x => x.Enabled); 74 var variableRanges = problemData.VariableRanges. getIntervals();74 var variableRanges = problemData.VariableRanges.GetIntervals(); 75 75 76 76 if (!results.ContainsKey(ConstraintViolationsResultName)) { -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionSolution.cs
r16921 r16927 1 #region License Information1 #region License Information 2 2 /* HeuristicLab 3 3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) … … 179 179 var problemData = solution.ProblemData; 180 180 var model = solution.Model; 181 var variableRanges = problemData.VariableRanges. getIntervals();181 var variableRanges = problemData.VariableRanges.GetIntervals(); 182 182 183 intervalEvaluation.VariableIntervals.Add($"Target {problemData.TargetVariable}", new Interval(variableRanges[problemData.TargetVariable].LowerBound, variableRanges[problemData.TargetVariable].UpperBound)); 184 intervalEvaluation.VariableIntervals.Add("Model Interval", interpreter.GetSymbolicExpressionTreeInterval(model.SymbolicExpressionTree, variableRanges)); 185 183 intervalEvaluation.AddInterval($"Target {problemData.TargetVariable}", new Interval(variableRanges[problemData.TargetVariable].LowerBound, variableRanges[problemData.TargetVariable].UpperBound)); 184 intervalEvaluation.AddInterval("Model Interval", interpreter.GetSymbolicExpressionTreeInterval(model.SymbolicExpressionTree, variableRanges)); 186 185 foreach (var inputVariable in model.VariablesUsedForPrediction.OrderBy(v => v, new NaturalStringComparer())) { 187 186 var derivedModel = DerivativeCalculator.Derive(model.SymbolicExpressionTree, inputVariable); 188 187 var derivedResultInterval = interpreter.GetSymbolicExpressionTreeInterval(derivedModel, variableRanges); 189 188 190 intervalEvaluation. VariableIntervals.Add(" \u2202f/\u2202" + inputVariable,189 intervalEvaluation.AddInterval(" ∂f/∂" + inputVariable, 191 190 new Interval(derivedResultInterval.LowerBound, derivedResultInterval.UpperBound)); 192 191 }
Note: See TracChangeset
for help on using the changeset viewer.