Changeset 18111 for trunk/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 12/09/21 07:20:12 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ShapeConstrainedRegressionProblemData.cs
r18110 r18111 145 145 : this(regressionProblemData.Dataset, regressionProblemData.AllowedInputVariables, regressionProblemData.TargetVariable, 146 146 regressionProblemData.TrainingPartition, regressionProblemData.TestPartition, regressionProblemData.Transformations, 147 (regressionProblemData is ShapeConstrainedRegressionProblemData) ? ((ShapeConstrainedRegressionProblemData)regressionProblemData).ShapeConstraints : null, 147 (regressionProblemData is ShapeConstrainedRegressionProblemData) ? ((ShapeConstrainedRegressionProblemData)regressionProblemData).ShapeConstraints : null, 148 148 regressionProblemData.VariableRanges) { 149 149 } … … 159 159 if (sc == null) sc = new ShapeConstraints(); 160 160 Parameters.Add(new FixedValueParameter<ShapeConstraints>(ShapeConstraintsParameterName, "Specifies the shape constraints for the regression problem.", (ShapeConstraints)sc.Clone())); 161 foreach (var entry in variableRanges.GetVariableIntervals()) 162 VariableRanges.SetInterval(entry.Item1, entry.Item2); 161 if (variableRanges != null) { 162 foreach (var entry in variableRanges.GetVariableIntervals()) 163 VariableRanges.SetInterval(entry.Item1, entry.Item2); 164 } 163 165 RegisterEventHandlers(); 164 166 }
Note: See TracChangeset
for help on using the changeset viewer.