diff options
author | Patrick Simianer <p@simianer.de> | 2014-02-06 10:26:29 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-02-06 10:26:29 +0100 |
commit | 7bfe96c2a706d375362c054619f28dd40c7c33e8 (patch) | |
tree | fb0698a3bcb4b38d99d7a07b87a573a571dd7be2 /training/mira/kbest_cut_mira.cc | |
parent | c83f665cb7efbbfb0fdfa12203b09ba60e365d25 (diff) | |
parent | 3798fb9a43c27c3dfe0db5ee0dd0ef04bf5ee5f5 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'training/mira/kbest_cut_mira.cc')
-rw-r--r-- | training/mira/kbest_cut_mira.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/training/mira/kbest_cut_mira.cc b/training/mira/kbest_cut_mira.cc index 9de57f5f..62c770df 100644 --- a/training/mira/kbest_cut_mira.cc +++ b/training/mira/kbest_cut_mira.cc @@ -937,7 +937,8 @@ int main(int argc, char** argv) { //reload weights based on update dense_weights.clear(); lambdas.init_vector(&dense_weights); - ShowLargestFeatures(dense_weights); + if (dense_weights.size() < 500) + ShowLargestFeatures(dense_weights); dense_w_local = dense_weights; iter++; @@ -1004,7 +1005,7 @@ int main(int argc, char** argv) { if (!stream) { int node_id = rng->next() * 100000; cerr << " Writing weights to " << node_id << endl; - Weights::ShowLargestFeatures(dense_weights); + //Weights::ShowLargestFeatures(dense_weights); dots = 0; ostringstream os; os << weights_dir << "/weights.mira-pass" << (cur_pass < 10 ? "0" : "") << cur_pass << "." << node_id << ".gz"; |