Changeset 10221 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
- Timestamp:
- 12/11/13 17:21:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/PreprocessingData.cs
r10220 r10221 142 142 } 143 143 144 public IntRange TrainingPartition { 145 get { return new IntRange(0, (int)(Rows * trainingToTestRatio)); } 146 } 147 148 public IntRange TestPartition { 149 get { return new IntRange((int)(Rows * trainingToTestRatio), Math.Max(Rows - 1, 0)); } 150 } 151 144 152 public IEnumerable<string> VariableNames { 145 153 get { return variableNames; } … … 155 163 156 164 public int Rows { 157 get { return variableValues .Count; }165 get { return variableValues[variableNames[0]].Count; } 158 166 } 159 167 public IDictionary<string, IEnumerable<int>> GetMissingValueIndices() {
Note: See TracChangeset
for help on using the changeset viewer.