Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18108


Ignore:
Timestamp:
12/08/21 18:34:19 (3 years ago)
Author:
gkronber
Message:

#3073 actually use variable ranges specified in the constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/ShapeConstrainedRegressionProblemData.cs

    r18034 r18108  
    145145      : this(regressionProblemData.Dataset, regressionProblemData.AllowedInputVariables, regressionProblemData.TargetVariable,
    146146          regressionProblemData.TrainingPartition, regressionProblemData.TestPartition, regressionProblemData.Transformations,
    147           (regressionProblemData is ShapeConstrainedRegressionProblemData) ? ((ShapeConstrainedRegressionProblemData)regressionProblemData).ShapeConstraints : null,
     147          (regressionProblemData is ShapeConstrainedRegressionProblemData scProblemData) ? scProblemData.ShapeConstraints : null,
    148148          regressionProblemData.VariableRanges) {
    149149    }
     
    159159      if (sc == null) sc = new ShapeConstraints();
    160160      Parameters.Add(new FixedValueParameter<ShapeConstraints>(ShapeConstraintsParameterName, "Specifies the shape constraints for the regression problem.", (ShapeConstraints)sc.Clone()));
    161 
     161      foreach (var entry in variableRanges.GetVariableIntervals())
     162        VariableRanges.SetInterval(entry.Item1, entry.Item2);
    162163      RegisterEventHandlers();
    163164    }
Note: See TracChangeset for help on using the changeset viewer.