Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/14 14:28:19 (11 years ago)
Author:
rstoll
Message:
  • Added ManipulationView with Content

presentation logic implemented
manipulation actions for delete xY missing

  • License added to LineChartView
  • ShuffleWithRanges without parameter added to ManipulationLogic (will use training and test partition)
Location:
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations
Files:
1 added
2 edited

Legend:

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

    r10658 r10709  
    2525
    2626namespace HeuristicLab.DataPreprocessing {
     27
    2728  [Item("LineChart", "Represents the line chart grid.")]
    2829  public class LineChartContent : PreprocessingChartContent {
    2930
    30     public LineChartContent(IChartLogic chartlogic) :base(chartlogic) {
     31    public LineChartContent(IChartLogic chartlogic)
     32      : base(chartlogic) {
    3133    }
    3234
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ManipulationLogic.cs

    r10672 r10709  
    181181    }
    182182
     183    public void ShuffleWithRanges() {
     184      ShuffleWithRanges(new[] {
     185        preprocessingData.TestPartition,
     186        preprocessingData.TrainingPartition
     187      });
     188    }
     189
    183190    public void ShuffleWithRanges(IEnumerable<IntRange> ranges) {
    184191      // init random outside loop
     
    186193
    187194      preprocessingData.InTransaction(() => {
    188         // process all given ranges - e.g. TrainingPartition, Trainingpartition
     195        // process all given ranges - e.g. TrainingPartition, TestPartition
    189196        foreach (IntRange range in ranges) {
    190197          List<Tuple<int, int>> shuffledIndices = new List<Tuple<int, int>>();
    191198
    192199          // generate random indices used for shuffeling each column
    193           for (int i = range.End; i > range.Start; --i) {
     200          for (int i = range.End - 1; i >= range.Start; --i) {
    194201            int rand = random.Next(range.Start, i);
    195202            shuffledIndices.Add(new Tuple<int, int>(i, rand));
Note: See TracChangeset for help on using the changeset viewer.