comparison stopper.py @ 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 40c8a46b3da7
children
comparison
equal deleted inserted replaced
477:8ff412852d66 478:0ea793361d85
52 for stp in self: 52 for stp in self:
53 step() 53 step()
54 if stp.set_score: 54 if stp.set_score:
55 stp.score = check() 55 stp.score = check()
56 if (stp.score < stp.best_score) and save: 56 if (stp.score < stp.best_score) and save:
57 best = save() 57 best = (save(), stp.iter, stp.score)
58 return best 58 return best
59 59
60 60
61 61
62 class ICML08Stopper(Stopper): 62 class ICML08Stopper(Stopper):