Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/12 16:43:08 (11 years ago)
Author:
sforsten
Message:

#1942:

  • implemented changes suggested by mkommend in comment:15:ticket:1942 except the first remark
  • TimeSeriesPrognosisInstanceProvider has been adapted to work similar to other DataAnalysisInstanceProvider, also views have been created for it
Location:
trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/CSV/ClassifiactionCSVInstanceProvider.cs

    r8877 r8885  
    9494      List<IList> values = csvFileParser.Values;
    9595      if (type.Shuffle) {
    96         values = Shuffle(values, csvFileParser.VariableNames.ToList().FindIndex(x => x.Equals(type.TargetVariable)),
    97                          type.Training, out trainingPartEnd);
     96        values = Shuffle(values);
     97        if (type.UniformlyDistributeClasses) {
     98          values = Shuffle(values, csvFileParser.VariableNames.ToList().FindIndex(x => x.Equals(type.TargetVariable)),
     99                           type.Training, out trainingPartEnd);
     100        }
    98101      }
    99102
     
    147150      trainingPartEnd = training.First().Count;
    148151
    149       training = Shuffle(training);
    150       test = Shuffle(test);
    151152      for (int i = 0; i < training.Count; i++) {
    152153        for (int j = 0; j < test[i].Count; j++) {
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/ClassificationImportType.cs

    r8877 r8885  
    2323  public class ClassificationImportType : DataAnalysisImportType {
    2424    public string TargetVariable { get; set; }
     25    public bool UniformlyDistributeClasses { get; set; }
    2526  }
    2627}
Note: See TracChangeset for help on using the changeset viewer.