From 08f80cfa824ba728764b5efea358aafee55aafd4 Mon Sep 17 00:00:00 2001 From: redpony Date: Tue, 28 Sep 2010 19:47:13 +0000 Subject: fix for prior weights git-svn-id: https://ws10smt.googlecode.com/svn/trunk@661 ec762483-ff6d-05da-a07a-a48fb63a330f --- training/mpi_online_optimize.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'training') diff --git a/training/mpi_online_optimize.cc b/training/mpi_online_optimize.cc index 6f5988a4..0c032c01 100644 --- a/training/mpi_online_optimize.cc +++ b/training/mpi_online_optimize.cc @@ -277,6 +277,7 @@ int main(int argc, char** argv) { rng = new MT19937; } SparseVector x; + weights.InitSparseVector(&x); int miter = corpus.size(); // hack to cause initial broadcast of order info TrainingObserver observer; double objective = 0; @@ -308,7 +309,7 @@ int main(int argc, char** argv) { broadcast(world, order, 0); } if (rank == 0) - cerr << "Starting decoding. minibatch=" << size_per_proc << " sentences/proc x " << size << " procs. num_feats=" << x.size() << " training data proc. = " << (iter * batch_size / static_cast(corpus.size())) << " eta=" << lr->eta(iter) << endl; + cerr << "iter=" << iter << " minibatch=" << size_per_proc << " sentences/proc x " << size << " procs. num_feats=" << x.size() << " passes_thru_data=" << (iter * batch_size / static_cast(corpus.size())) << " eta=" << lr->eta(iter) << endl; const int beg = size * miter * size_per_proc + rank * size_per_proc; const int end = beg + size_per_proc; -- cgit v1.2.3