Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/19/10 18:49:17 (15 years ago)
Author:
gkronber
Message:

Removed max. and min. time offset constraints as algorithm parameters and from all engines. The time constraints were added to the relevant terminal symbols (variable & differential) instead. The time offset constraint can be changed by editing the symbols in the function library. #880 (Max and min time offsets for variable symbols are not set correctly by FunctionLibraryInjectors)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegressionOperator.cs

    r2789 r2843  
    114114      int p = inputMatrix.GetLength(1);
    115115      // 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) };
    117117      double[,] dataset = new double[n, p];
    118118      for (int row = 0; row < n; row++) {
Note: See TracChangeset for help on using the changeset viewer.