Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/30/15 16:55:22 (9 years ago)
Author:
gkronber
Message:

#2435 reverse merge of all trunk changes for updating to alglib version 3.9.0 (r12790:12792, r12798, r12801)

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear
Files:
2 edited

Legend:

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

    r12792 r12817  
    4747    private LinearRegression(LinearRegression original, Cloner cloner)
    4848      : base(original, cloner) {
    49 
    5049    }
    5150    public LinearRegression()
     
    7877        throw new NotSupportedException("Linear regression does not support NaN or infinity values in the input dataset.");
    7978
    80       alglib.linearmodel lm;
    81       alglib.lrreport ar;
     79      alglib.linearmodel lm = new alglib.linearmodel();
     80      alglib.lrreport ar = new alglib.lrreport();
    8281      int nRows = inputMatrix.GetLength(0);
    8382      int nFeatures = inputMatrix.GetLength(1) - 1;
    84       double[] coefficients;
     83      double[] coefficients = new double[nFeatures + 1]; // last coefficient is for the constant
    8584
    8685      int retVal = 1;
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/MultinomialLogitClassification.cs

    r12792 r12817  
    7474        throw new NotSupportedException("Multinomial logit classification does not support NaN or infinity values in the input dataset.");
    7575
    76       alglib.logitmodel lm;
    77       alglib.mnlreport rep;
     76      alglib.logitmodel lm = new alglib.logitmodel();
     77      alglib.mnlreport rep = new alglib.mnlreport();
    7878      int nRows = inputMatrix.GetLength(0);
    7979      int nFeatures = inputMatrix.GetLength(1) - 1;
Note: See TracChangeset for help on using the changeset viewer.