Changeset 11403 for trunk/sources/HeuristicLab.DataPreprocessing
- Timestamp:
- 09/29/14 15:02:20 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.DataPreprocessing/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs
r11380 r11403 225 225 } 226 226 227 public void ShuffleWithRanges(bool shuffleRangesSeparately) { 227 public void Shuffle(bool shuffleRangesSeparately) { 228 Random random = new Random(); 228 229 var ranges = new[] { preprocessingData.TestPartition, preprocessingData.TrainingPartition }; 229 ShuffleWithRanges(ranges, shuffleRangesSeparately);230 }231 232 public void ShuffleWithRanges(IEnumerable<IntRange> ranges, bool shuffleRangesSeparately) {233 // init random outside loop234 Random random = new Random();235 236 230 if (shuffleRangesSeparately) { 237 231 preprocessingData.InTransaction(() => { -
trunk/sources/HeuristicLab.DataPreprocessing/3.4/Interfaces/IManipulationLogic.cs
r11380 r11403 38 38 void ReplaceIndicesByValue(IDictionary<int, IList<int>> cells, string value); 39 39 void ReplaceIndicesByValue<T>(int columnIndex, IEnumerable<int> rowIndices, T value); 40 void ShuffleWithRanges(bool shuffleRangesSeparately); 41 void ShuffleWithRanges(IEnumerable<HeuristicLab.Data.IntRange> ranges, bool shuffleRangesSeparately); 40 void Shuffle(bool shuffleRangesSeparately); 42 41 List<int> RowsWithMissingValuesGreater(double percent); 43 42 List<int> ColumnsWithMissingValuesGreater(double percent);
Note: See TracChangeset
for help on using the changeset viewer.