# HG changeset patch # User James Bergstra # Date 1271340537 14400 # Node ID 62b65651f312e1f536a3488076b3caaae94cf813 # Parent 2a53384d97429977f89a2f82543c29a867d48f2f added __str__ to early Stopper diff -r 2a53384d9742 -r 62b65651f312 pylearn/shared/layers/sgd.py --- a/pylearn/shared/layers/sgd.py Mon Aug 23 16:05:31 2010 -0400 +++ b/pylearn/shared/layers/sgd.py Thu Apr 15 10:08:57 2010 -0400 @@ -137,3 +137,9 @@ or (self.iter < (self.halflife_iter * self.patience_factor)) self.iter += 1 + def __str__(self): + return ("Stopper{iter=%(iter)s," + "promising=%(promising)s,best_iter=%(best_iter)s,best_value=%(best_value)s" + ",patience=%(patience_factor)s}")%self.__dict__ + +