Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14609 for branches


Ignore:
Timestamp:
01/25/17 21:45:29 (8 years ago)
Author:
bburlacu
Message:

#2635: Small improvement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.OSGAEvaluator/HeuristicLab.OSGAEvaluator/SymbolicRegressionSingleObjectiveOSGAEvaluator.cs

    r14608 r14609  
    250250          var trainingEnd = problemData.TrainingPartition.End;
    251251
    252           double quality = -1;
     252          double quality = 0;
    253253          int intervalCount = 0, rejectionInterval = 0;
    254           bool predictedRejected = false;
     254          var predictedRejected = false;
    255255
    256256          while (estimatedEnumerator.MoveNext() & targetEnumerator.MoveNext()) {
     
    273273          actualQuality *= actualQuality;
    274274
     275          if (!predictedRejected) quality = actualQuality;
     276
    275277          var actuallyRejected = !(actualQuality > parentQuality);
    276278
Note: See TracChangeset for help on using the changeset viewer.