Changeset 16515


Ignore:
Timestamp:
01/08/19 12:04:05 (6 months ago)
Author:
gkronber
Message:

#2929 changed code to update best solutions to work with empty results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2929_PrioritizedGrammarEnumeration/HeuristicLab.Algorithms.DataAnalysis.PGE/3.3/PGE.cs

    r16335 r16515  
    380380          log.LogMessage("Push/Pop (" + iResult + ", " + bestlen1 + ", " + bestlen2 + ", " + testScore + ", noBestPush: " + (nobestpush > 0) + ", bestNewMin: " + (bestNewMinError > 0) + ") " + eqnStr + " coeff: " + string.Join(" ", coeff));
    381381
    382           if (testScore < bestTestScore) {
     382          if (!string.IsNullOrEmpty(eqnStr) && (testScore < bestTestScore || bestNewMinError > 0)) {
    383383            // update best quality
    384384            bestTestScore = testScore;
Note: See TracChangeset for help on using the changeset viewer.