Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/14 15:15:54 (10 years ago)
Author:
tsteinre
Message:
  • Partition Ranges are not computed anymore: save the concrete values in PreprocessingData.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.4/Implementations/TransactionalPreprocessingData.cs

    r10991 r10994  
    2525using HeuristicLab.Common;
    2626using HeuristicLab.Core;
     27using HeuristicLab.Data;
    2728using HeuristicLab.Problems.DataAnalysis;
    2829using HeuristicLab.Problems.DataAnalysis.Transformations;
     
    3738      public IList<string> VariableNames { get; set; }
    3839
    39       public double TrainingToTestRatio { get; set; }
     40      public IntRange TrainingPartition { get; set; }
     41      public IntRange TestPartition { get; set; }
    4042      public IList<ITransformation> Transformations { get; set; }
    4143      public DataPreprocessingChangedEventType ChangedType { get; set; }
     
    6668        VariableValues = CopyVariableValues(variableValues),
    6769        VariableNames = new List<string>(variableNames),
    68         TrainingToTestRatio = trainingToTestRatio,
     70        TrainingPartition = new IntRange(TrainingPartition.Start, TrainingPartition.End),
     71        TestPartition = new IntRange(TestPartition.Start, TestPartition.End),
    6972        Transformations = new List<ITransformation>(transformations),
    7073        ChangedType = changedType,
     
    235238        variableValues = previousSnapshot.VariableValues;
    236239        variableNames = previousSnapshot.VariableNames;
    237         trainingToTestRatio = previousSnapshot.TrainingToTestRatio;
     240        TrainingPartition = previousSnapshot.TrainingPartition;
     241        TestPartition = previousSnapshot.TestPartition;
    238242        transformations = previousSnapshot.Transformations;
    239243        undoHistory.Remove(previousSnapshot);
Note: See TracChangeset for help on using the changeset viewer.