changeset 478:0ea793361d85

stopper.find_min returns tuple instead of just best
author James Bergstra <bergstrj@iro.umontreal.ca>
date Fri, 24 Oct 2008 13:28:30 -0400
parents 8ff412852d66
children fbfd3932fd00
files stopper.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stopper.py	Fri Oct 24 13:28:00 2008 -0400
+++ b/stopper.py	Fri Oct 24 13:28:30 2008 -0400
@@ -54,7 +54,7 @@
             if stp.set_score:
                 stp.score = check()
                 if (stp.score < stp.best_score) and save:
-                    best = save()
+                    best = (save(), stp.iter, stp.score)
         return best