Changeset 16924
- Timestamp:
- 05/08/19 15:51:16 (6 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintConstOptEvaluator.cs
r16921 r16924 60 60 61 61 var constraints = problemData.IntervalConstraints.Constraints.Where(x => x.Enabled); 62 var variableRanges = problemData.VariableRanges. getIntervals();62 var variableRanges = problemData.VariableRanges.GetIntervals(); 63 63 64 64 var r2 = SymbolicRegressionConstantOptimizationEvaluator.OptimizeConstants(interpreter, tree, problemData, problemData.TrainingIndices, applyLinearScaling, 10); -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintPearsonRSquaredEvaluator.cs
r16921 r16924 61 61 62 62 var constraints = problemData.IntervalConstraints.Constraints.Where(x => x.Enabled); 63 var variableRanges = problemData.VariableRanges. getIntervals();63 var variableRanges = problemData.VariableRanges.GetIntervals(); 64 64 var tree = solution; 65 65 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Interval/IntervalConstraintsParser.cs
r16903 r16924 59 59 var inclLowerBound = match.Groups[5].Value.Trim() == "["; 60 60 var inclUpperBound = match.Groups[9].Value.Trim() == "]"; 61 var is Derivation = false;61 var isEnabled = true; 62 62 var numberOfDerivation = 0; 63 63 var interval = new Interval(lowerBound, upperBound); 64 64 65 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);65 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, isEnabled); 66 66 67 67 yield return constraint; … … 110 110 var expression = match.Groups[0].Value; 111 111 var parsedTarget = derivationTarget; 112 var is Derivation= true;112 var isEnabled = true; 113 113 var inclLowerBound = match.Groups[12].Value.Trim() == "["; 114 114 var inclUpperBound = match.Groups[16].Value.Trim() == "]"; … … 117 117 var interval = new Interval(lowerBound, upperBound); 118 118 119 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, true);119 var constraint = new IntervalConstraint(expression, variable, parsedTarget, numberOfDerivation, interval, inclLowerBound, inclUpperBound, isEnabled); 120 120 121 121 yield return constraint;
Note: See TracChangeset
for help on using the changeset viewer.