psi statistics working for linear ARD kernel

This commit is contained in:
Nicolò Fusi 2013-02-07 10:01:05 +00:00
parent 2e948d888a
commit baa06181e8
3 changed files with 16 additions and 8 deletions

View file

@ -205,11 +205,10 @@ class opt_SGD(Optimizer):
self.x_opt -= step + momentum_term
if self.messages == 2:
if count == last_printed_count + 20 or count == 0:
status = "evaluating {feature: 5d}/{tot: 5d} \t f: {f: 2.3f} \t non-missing: {nm: 4d}\r".format(feature = count, tot = len(features), f = f, nm = Nj)
sys.stdout.write(status)
sys.stdout.flush()
last_printed_count = count
status = "evaluating {feature: 5d}/{tot: 5d} \t f: {f: 2.3f} \t non-missing: {nm: 4d}\r".format(feature = count, tot = len(features), f = f, nm = Nj)
sys.stdout.write(status)
sys.stdout.flush()
last_printed_count = count
NLL.append(f)