Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/09/14 13:08:49 (10 years ago)
Author:
rstoll
Message:
  • Preview and execution for delete columns/rows with insufficient information
File:
1 edited

Legend:

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

    r10661 r10737  
    4343    void preprocessingData_Changed(object sender, DataPreprocessingChangedEventArgs e)
    4444    {
    45       MissingValueIndicies.Remove(e.Column);
    46       ValuesWithoutNaN.Remove(e.Column);
     45      switch (e.Type) {
     46        case DataPreprocessingChangedEventType.DeleteColumn:
     47        case DataPreprocessingChangedEventType.ChangeColumn:
     48          MissingValueIndicies.Remove(e.Column);
     49          ValuesWithoutNaN.Remove(e.Column);
     50          break;
     51        case DataPreprocessingChangedEventType.AddColumn:
     52          //cache does not need to be updated, will be calculated the first time it is requested
     53          break;
     54        case DataPreprocessingChangedEventType.DeleteRow:
     55        case DataPreprocessingChangedEventType.AddRow:
     56        case DataPreprocessingChangedEventType.ChangeItem:
     57        case DataPreprocessingChangedEventType.Any:
     58        case DataPreprocessingChangedEventType.Transformation:
     59          MissingValueIndicies = new Dictionary<int, IEnumerable<int>>();
     60          ValuesWithoutNaN = new Dictionary<int, IEnumerable>();
     61          break;
     62      }
    4763    }
    4864
Note: See TracChangeset for help on using the changeset viewer.