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/Linear/MultinomialLogitClassification.cs

    r7259 r8206  
    6969      string targetVariable = problemData.TargetVariable;
    7070      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    71       IEnumerable<int> rows = problemData.TrainingIndizes;
     71      IEnumerable<int> rows = problemData.TrainingIndices;
    7272      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
    7373      if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x)))
     
    8181      int nClasses = classValues.Count();
    8282      // map original class values to values [0..nClasses-1]
    83       Dictionary<double, double> classIndizes = new Dictionary<double, double>();
     83      Dictionary<double, double> classIndices = new Dictionary<double, double>();
    8484      for (int i = 0; i < nClasses; i++) {
    85         classIndizes[classValues[i]] = i;
     85        classIndices[classValues[i]] = i;
    8686      }
    8787      for (int row = 0; row < nRows; row++) {
    88         inputMatrix[row, nFeatures] = classIndizes[inputMatrix[row, nFeatures]];
     88        inputMatrix[row, nFeatures] = classIndices[inputMatrix[row, nFeatures]];
    8989      }
    9090      int info;
Note: See TracChangeset for help on using the changeset viewer.