Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/17/13 17:18:01 (12 years ago)
Author:
gkronber
Message:

#1999 improved implementation of feature selection problem instances based on the review comments by mkommend.

  • Created a PRNG for uniformly distributed values with a specified range [min..max[
  • Created a class FeatureSelectionRegressionProblemData with additional informative parameters derived from RegressionProblemData
  • fixed typos: shuffeled and varialbe
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/DataAnalysisInstanceProvider.cs

    r8878 r9217  
    4949      int count = values.First().Count;
    5050      int[] indices = Enumerable.Range(0, count).Shuffle(new FastRandom()).ToArray();
    51       List<IList> shuffeledValues = new List<IList>(values.Count);
     51      List<IList> shuffled = new List<IList>(values.Count);
    5252      for (int col = 0; col < values.Count; col++) {
    5353
    5454        if (values[col] is List<double>)
    55           shuffeledValues.Add(new List<double>());
     55          shuffled.Add(new List<double>());
    5656        else if (values[col] is List<DateTime>)
    57           shuffeledValues.Add(new List<DateTime>());
     57          shuffled.Add(new List<DateTime>());
    5858        else if (values[col] is List<string>)
    59           shuffeledValues.Add(new List<string>());
     59          shuffled.Add(new List<string>());
    6060        else
    6161          throw new InvalidOperationException();
    6262
    6363        for (int i = 0; i < count; i++) {
    64           shuffeledValues[col].Add(values[col][indices[i]]);
     64          shuffled[col].Add(values[col][indices[i]]);
    6565        }
    6666      }
    67       return shuffeledValues;
     67      return shuffled;
    6868    }
    6969
Note: See TracChangeset for help on using the changeset viewer.