Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 16:46:35 (12 years ago)
Author:
gkronber
Message:

#1847: merged r8084:8205 from trunk into GP move operators branch

Location:
branches/GP-MoveOperators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestClassification.cs

    r7259 r8206  
    9797      string targetVariable = problemData.TargetVariable;
    9898      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    99       IEnumerable<int> rows = problemData.TrainingIndizes;
     99      IEnumerable<int> rows = problemData.TrainingIndices;
    100100      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
    101101      if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x)))
     
    111111      int nClasses = classValues.Count();
    112112      // map original class values to values [0..nClasses-1]
    113       Dictionary<double, double> classIndizes = new Dictionary<double, double>();
     113      Dictionary<double, double> classIndices = new Dictionary<double, double>();
    114114      for (int i = 0; i < nClasses; i++) {
    115         classIndizes[classValues[i]] = i;
     115        classIndices[classValues[i]] = i;
    116116      }
    117117      for (int row = 0; row < nRows; row++) {
    118         inputMatrix[row, nCols - 1] = classIndizes[inputMatrix[row, nCols - 1]];
     118        inputMatrix[row, nCols - 1] = classIndices[inputMatrix[row, nCols - 1]];
    119119      }
    120120      // execute random forest algorithm
Note: See TracChangeset for help on using the changeset viewer.