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:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/GP-MoveOperators

  • branches/GP-MoveOperators/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearDiscriminantAnalysis.cs

    r7259 r8206  
    6868      string targetVariable = problemData.TargetVariable;
    6969      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    70       IEnumerable<int> rows = problemData.TrainingIndizes;
     70      IEnumerable<int> rows = problemData.TrainingIndices;
    7171      int nClasses = problemData.ClassNames.Count();
    7272      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
  • branches/GP-MoveOperators/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs

    r7588 r8206  
    7272      string targetVariable = problemData.TargetVariable;
    7373      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    74       IEnumerable<int> rows = problemData.TrainingIndizes;
     74      IEnumerable<int> rows = problemData.TrainingIndices;
    7575      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
    7676      if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x)))
  • 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.