Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/12/14 15:30:38 (10 years ago)
Author:
tsteinre
Message:
  • Added transaction support for DataPreprocessing (Undo Feature)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ManipulationLogic.cs

    r10539 r10580  
    126126      Random random = new Random();
    127127
     128      preprocessingData.BeginTransaction();
    128129      // process all given ranges - e.g. TrainingPartition, Trainingpartition
    129130      foreach (IntRange range in ranges) {
     
    138139        ReOrderToIndices(shuffledIndices);
    139140      }
     141      preprocessingData.EndTransaction();
    140142    }
    141143
     
    151153
    152154    public void ReOrderToIndices(IList<System.Tuple<int, int>> indices) {
     155      preprocessingData.BeginTransaction();
    153156      for (int i = 0; i < preprocessingData.Columns; ++i) {
    154157        if (preprocessingData.IsType<double>(i)) {
     
    160163        }
    161164      }
     165      preprocessingData.EndTransaction();
    162166    }
    163167
Note: See TracChangeset for help on using the changeset viewer.