Changeset 10922 for branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
- Timestamp:
- 05/30/14 11:51:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionProblemData.cs
r10772 r10922 130 130 } 131 131 132 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, I Enumerable<ITransformation> transformations = null)133 : base(dataset, allowedInputVariables, transformations ?? Enumerable.Empty<ITransformation>()) {132 public RegressionProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, string targetVariable, IList<ITransformation> transformations = null) 133 : base(dataset, allowedInputVariables, transformations ?? new List<ITransformation>()) { 134 134 var variables = InputVariables.Select(x => x.AsReadOnly()).ToList(); 135 135 Parameters.Add(new ConstrainedValueParameter<StringValue>(TargetVariableParameterName, new ItemSet<StringValue>(variables), variables.Where(x => x.Value == targetVariable).First()));
Note: See TracChangeset
for help on using the changeset viewer.