Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/11 15:32:18 (13 years ago)
Author:
gkronber
Message:

#1523: fixed bug in fixed data analysis algorithms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/LinearRegression.cs

    r6002 r6182  
    7272      string targetVariable = problemData.TargetVariable;
    7373      IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables;
    74       int samplesStart = problemData.TrainingPartition.Start;
    75       int samplesEnd = problemData.TrainingPartition.End;
    76       IEnumerable<int> rows = Enumerable.Range(samplesStart, samplesEnd - samplesStart);
     74      IEnumerable<int> rows = problemData.TrainingIndizes;
    7775      double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows);
    7876      if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x)))
Note: See TracChangeset for help on using the changeset viewer.