Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17961


Ignore:
Timestamp:
04/23/21 16:57:17 (4 years ago)
Author:
gkronber
Message:

#3073: propagate variableRanges from ShapeConstrainedRegressionProblemData to RegressionProblemData

File:
1 edited

Legend:

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

    r17960 r17961  
    119119    public ShapeConstrainedRegressionProblemData(IRegressionProblemData regressionProblemData)
    120120      : this(regressionProblemData.Dataset, regressionProblemData.AllowedInputVariables, regressionProblemData.TargetVariable,
    121           regressionProblemData.TrainingPartition, regressionProblemData.TestPartition) {
     121          regressionProblemData.TrainingPartition, regressionProblemData.TestPartition, regressionProblemData.Transformations, null, regressionProblemData.VariableRanges) {
    122122    }
    123123
    124124    public ShapeConstrainedRegressionProblemData(IDataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable,
    125125                                                 IntRange trainingPartition, IntRange testPartition,
    126                                                  IEnumerable<ITransformation> transformations = null, ShapeConstraints sc = null)
    127     : base(dataset, allowedInputVariables, targetVariable, transformations ?? Enumerable.Empty<ITransformation>()) {
     126                                                 IEnumerable<ITransformation> transformations = null, ShapeConstraints sc = null, IntervalCollection variableRanges = null)
     127    : base(dataset, allowedInputVariables, targetVariable, transformations ?? Enumerable.Empty<ITransformation>(), variableRanges) {
    128128      TrainingPartition.Start = trainingPartition.Start;
    129129      TrainingPartition.End = trainingPartition.End;
Note: See TracChangeset for help on using the changeset viewer.