fixed small bug in SGD

This commit is contained in:
Nicolo Fusi 2013-03-25 18:02:42 +00:00
parent 55ad96f38b
commit c9709cf4da

View file

@ -247,7 +247,7 @@ class opt_SGD(Optimizer):
if self.messages == 2:
noise = np.exp(self.x_opt)[-1]
noise = self.model.likelihood._variance
status = "evaluating {feature: 5d}/{tot: 5d} \t f: {f: 2.3f} \t non-missing: {nm: 4d}\t noise: {noise: 2.4f}\r".format(feature = count, tot = len(features), f = f, nm = Nj, noise = noise)
sys.stdout.write(status)
sys.stdout.flush()