Ignore:
Timestamp:
09/29/14 15:02:20 (5 years ago)
Author:
bburlacu
Message:

#2245: The Shuffle method needs a bool parameter to be passed from the view (checkbox whether to shuffle with ranges or not). I combined the three methods into just one method void Shuffle(bool shuffleRangesSeparately).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing/3.4/Implementations/ManipulationLogic.cs

    r11380 r11403  
    225225    }
    226226
    227     public void ShuffleWithRanges(bool shuffleRangesSeparately) {
     227    public void Shuffle(bool shuffleRangesSeparately) {
     228      Random random = new Random();
    228229      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 loop
    234       Random random = new Random();
    235 
    236230      if (shuffleRangesSeparately) {
    237231        preprocessingData.InTransaction(() => {
Note: See TracChangeset for help on using the changeset viewer.