Changeset 11382 for trunk/sources/HeuristicLab.DataPreprocessing
- Timestamp:
- 09/18/14 19:23:10 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/ProblemDataCreator.cs
r11171 r11382 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.Linq; 24 25 using HeuristicLab.Common; 25 26 using HeuristicLab.Problems.DataAnalysis; … … 58 59 59 60 SetTrainingAndTestPartition(problemData); 61 // set the input variables to the correct checked state 62 var inputVariables = problemData.InputVariables.ToDictionary(x => x.Value, x => x); 63 foreach (var variable in oldProblemData.InputVariables) { 64 bool @checked = oldProblemData.InputVariables.ItemChecked(variable); 65 problemData.InputVariables.SetItemCheckedState(inputVariables[variable.Value], @checked); 66 } 60 67 61 68 return problemData;
Note: See TracChangeset
for help on using the changeset viewer.