Changeset 10186
- Timestamp:
- 12/04/13 14:03:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10185 r10186 35 35 private IDictionary<string, IList> variableValues; 36 36 37 private IList<string> variableNames; 38 37 39 private IDictionary<string, int> variableNameIndices; 38 40 … … 49 51 Name = "-"; 50 52 53 variableNames = new List<string>(problemData.Dataset.VariableNames)); 51 54 // create dictionary from variable name to index 52 55 variableNameIndices = new Dictionary<string, int>(); … … 71 74 72 75 trainingToTestRatio = (double)problemData.TrainingPartition.Size / problemData.TestPartition.Size; 76 Columns = problemData.Dataset.Columns; 77 Rows = problemData.Dataset.Rows; 73 78 } 74 79 … … 92 97 93 98 public T GetCell<T>(int columnIndex, int rowIndex) { 94 throw new NotImplementedException();99 return (T)variableValues[variableNames[columnIndex]][rowIndex]; 95 100 } 96 101 … … 156 161 157 162 public int Columns { 158 get { throw new NotImplementedException(); } 163 get; 164 private set; 159 165 } 160 166 161 167 public int Rows { 162 get { throw new NotImplementedException(); } 168 get; 169 private set; 163 170 } 164 171
Note: See TracChangeset
for help on using the changeset viewer.