- Timestamp:
- 07/21/15 16:00:20 (9 years ago)
- 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
r12509 r12792 47 47 private LinearRegression(LinearRegression original, Cloner cloner) 48 48 : base(original, cloner) { 49 49 50 } 50 51 public LinearRegression() … … 77 78 throw new NotSupportedException("Linear regression does not support NaN or infinity values in the input dataset."); 78 79 79 alglib.linearmodel lm = new alglib.linearmodel();80 alglib.lrreport ar = new alglib.lrreport();80 alglib.linearmodel lm; 81 alglib.lrreport ar; 81 82 int nRows = inputMatrix.GetLength(0); 82 83 int nFeatures = inputMatrix.GetLength(1) - 1; 83 double[] coefficients = new double[nFeatures + 1]; // last coefficient is for the constant84 double[] coefficients; 84 85 85 86 int retVal = 1; -
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/Linear/MultinomialLogitClassification.cs
r12622 r12792 74 74 throw new NotSupportedException("Multinomial logit classification does not support NaN or infinity values in the input dataset."); 75 75 76 alglib.logitmodel lm = new alglib.logitmodel();77 alglib.mnlreport rep = new alglib.mnlreport();76 alglib.logitmodel lm; 77 alglib.mnlreport rep; 78 78 int nRows = inputMatrix.GetLength(0); 79 79 int nFeatures = inputMatrix.GetLength(1) - 1;
Note: See TracChangeset
for help on using the changeset viewer.