Changeset 14232 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
- Timestamp:
- 08/03/16 18:54:14 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r14185 r14232 131 131 protected DataAnalysisProblemData(IDataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations = null) { 132 132 if (dataset == null) throw new ArgumentNullException("The dataset must not be null."); 133 if (allowedInputVariables == null) throw new ArgumentNullException("The allowed InputVariables must not be null.");134 135 if (allowedInputVariables.Except(dataset.DoubleVariables). Any())136 throw new ArgumentException("All allowed input variables must be present in the dataset and of type double .");137 138 var inputVariables = new CheckedItemList<StringValue>(dataset.DoubleVariables. Select(x => new StringValue(x)));133 if (allowedInputVariables == null) throw new ArgumentNullException("The allowed input variables must not be null."); 134 135 if (allowedInputVariables.Except(dataset.DoubleVariables).Except(dataset.StringVariables).Any()) 136 throw new ArgumentException("All allowed input variables must be present in the dataset and of type double or string."); 137 138 var inputVariables = new CheckedItemList<StringValue>(dataset.DoubleVariables.Concat(dataset.StringVariables).Select(x => new StringValue(x))); 139 139 foreach (StringValue x in inputVariables) 140 140 inputVariables.SetItemCheckedState(x, allowedInputVariables.Contains(x.Value));
Note: See TracChangeset
for help on using the changeset viewer.