Changeset 11156 for trunk/sources/HeuristicLab.Problems.DataAnalysis
- Timestamp:
- 07/09/14 10:37:01 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Dataset.cs
r11114 r11156 221 221 } 222 222 223 public bool IsType<T>(string variableName) {223 public bool VariableHasType<T>(string variableName) { 224 224 return variableValues[variableName] is IList<T>; 225 225 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/HeuristicLab.Problems.DataAnalysis-3.4.csproj
r11114 r11156 159 159 <Compile Include="Interfaces\IDataAnalysisSolutionExporter.cs" /> 160 160 <Compile Include="Interfaces\IDependencyCalculator.cs" /> 161 <Compile Include="Interfaces\IModelBacktransformator.cs" />162 161 <Compile Include="Interfaces\ITransformation.cs" /> 163 162 <Compile Include="Interfaces\ITransformationMapper.cs" /> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/DataAnalysisProblemData.cs
r11114 r11156 126 126 } 127 127 128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations ) {128 protected DataAnalysisProblemData(Dataset dataset, IEnumerable<string> allowedInputVariables, IEnumerable<ITransformation> transformations = null) { 129 129 if (dataset == null) throw new ArgumentNullException("The dataset must not be null."); 130 130 if (allowedInputVariables == null) throw new ArgumentNullException("The allowedInputVariables must not be null."); … … 132 132 if (allowedInputVariables.Except(dataset.DoubleVariables).Any()) 133 133 throw new ArgumentException("All allowed input variables must be present in the dataset and of type double."); 134 135 if (transformations == null) throw new ArgumentNullException("The transformations must not be null.");136 134 137 135 var inputVariables = new CheckedItemList<StringValue>(dataset.DoubleVariables.Select(x => new StringValue(x))); … … 144 142 int testPartitionEnd = dataset.Rows; 145 143 146 var transformationsList = new ItemList<ITransformation>(transformations );144 var transformationsList = new ItemList<ITransformation>(transformations ?? Enumerable.Empty<ITransformation>()); 147 145 148 146 Parameters.Add(new FixedValueParameter<Dataset>(DatasetParameterName, "", dataset));
Note: See TracChangeset
for help on using the changeset viewer.