Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/29/10 15:22:18 (14 years ago)
Author:
gkronber
Message:

Added a special predictor builder for linear scaling tree evaluation and changed default GP engines to use linear scaling evaluators. #823.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs

    r2619 r2722  
    5252
    5353    public override IEnumerable<double> Predict(Dataset input, int start, int end) {
     54      if (input == null) throw new ArgumentNullException();
     55      if (start < 0 || end <= start) throw new ArgumentException("start must be larger than zero and strictly smaller than end");
     56      if (end > input.Rows) throw new ArgumentOutOfRangeException("number of rows in input is smaller then end");
    5457      treeEvaluator.UpperEvaluationLimit = UpperPredictionLimit;
    5558      treeEvaluator.LowerEvaluationLimit = LowerPredictionLimit;
    5659
    57       if (start < 0 || end <= start) throw new ArgumentException("start must be larger than zero and strictly smaller than end");
    58       if (end > input.Rows) throw new ArgumentOutOfRangeException("number of rows in input is smaller then end");
    5960      return treeEvaluator.Evaluate(input, functionTree.FunctionTree, Enumerable.Range(start, end - start));
    6061    }
Note: See TracChangeset for help on using the changeset viewer.