Changeset 2843 for trunk/sources/HeuristicLab.LinearRegression
- Timestamp:
- 02/19/10 18:49:17 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegressionOperator.cs
r2789 r2843 114 114 int p = inputMatrix.GetLength(1); 115 115 // no features allowed -> return constant offset 116 if (p == 0) return new double[] { Statistics.Mean(targetVector) };116 if (p <= 1) return new double[] { Statistics.Mean(targetVector) }; 117 117 double[,] dataset = new double[n, p]; 118 118 for (int row = 0; row < n; row++) {
Note: See TracChangeset
for help on using the changeset viewer.