Changeset 17504
- Timestamp:
- 04/10/20 13:13:25 (5 years ago)
- Location:
- branches/2971_named_intervals
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintConstOptEvaluator.cs
r17482 r17504 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq;25 24 using HEAL.Attic; 26 25 using HeuristicLab.Common; … … 59 58 IEnumerable<double> targetValues = problemData.Dataset.GetDoubleValues(problemData.TargetVariable, rows); 60 59 61 var constraints = problemData.IntervalConstraints. Constraints.Where(x => x.Enabled);60 var constraints = problemData.IntervalConstraints.EnabledConstraints; 62 61 var variableRanges = problemData.VariableRanges.GetIntervals(); 63 62 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionSingleObjectiveConstraintPearsonRSquaredEvaluator.cs
r16924 r17504 20 20 #endregion 21 21 22 using System;23 22 using System.Collections.Generic; 24 using System.Linq;25 23 using HEAL.Attic; 26 24 using HeuristicLab.Common; … … 60 58 OnlineCalculatorError errorState = OnlineCalculatorError.None; 61 59 62 var constraints = problemData.IntervalConstraints. Constraints.Where(x => x.Enabled);60 var constraints = problemData.IntervalConstraints.EnabledConstraints; 63 61 var variableRanges = problemData.VariableRanges.GetIntervals(); 64 62 var tree = solution; -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionConstraintAnalyzer.cs
r17370 r17504 71 71 72 72 var results = ResultCollectionParameter.ActualValue; 73 var constraints = problemData.IntervalConstraints. Constraints.Where(x => x.Enabled);73 var constraints = problemData.IntervalConstraints.EnabledConstraints; 74 74 var variableRanges = problemData.VariableRanges.GetIntervals(); 75 75 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis/3.4/ProblemDataConstraint.cs
r17370 r17504 82 82 } 83 83 } 84 public IEnumerable<IntervalConstraint> EnabledConstraints { 85 get => Constraints.Where(c => c.Enabled); 86 } 87 88 84 89 [Storable] 85 90 public IRegressionProblemData ProblemData { get; private set; }
Note: See TracChangeset
for help on using the changeset viewer.