Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/27/09 17:27:57 (15 years ago)
Author:
gkronber
Message:

Fixed #765 (GP Predictor should output NaN if the predicted value for a row can't be calculated).

File:
1 edited

Legend:

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

    r2328 r2393  
    3838        case EvaluatorSymbolTable.VARIABLE: {
    3939            int row = sampleIndex + currInstr.i_arg1;
    40             if (row < 0 || row >= dataset.Rows) throw new InvalidOperationException("Out of range access to dataset row: " + row);
     40            if (row < 0 || row >= dataset.Rows) throw new ArgumentException("Out of range access to dataset row: " + row);
    4141            else return currInstr.d_arg0 * dataset.GetValue(row, currInstr.i_arg0);
    4242          }
     
    4646        case EvaluatorSymbolTable.DIFFERENTIAL: {
    4747            int row = sampleIndex + currInstr.i_arg1;
    48             if (row < 0 || row >= dataset.Rows) throw new InvalidOperationException("Out of range access to dataset row: " + row);
     48            if (row < 0 || row >= dataset.Rows) throw new ArgumentException("Out of range access to dataset row: " + row);
    4949            else if (row < 1) return 0.0;
    5050            else {
Note: See TracChangeset for help on using the changeset viewer.