summaryrefslogtreecommitdiff
path: root/training/mira
diff options
context:
space:
mode:
authorChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:46:28 -0500
committerChris Dyer <cdyer@allegro.clab.cs.cmu.edu>2013-11-10 01:46:28 -0500
commit1e9afb904a57ff0b03edd0e94d634ef98e7d4b2a (patch)
tree24aef25a92bbef43224c6c4c8a082d0256b70640 /training/mira
parentda179c9cbe92d93c5e7bfb1dbe1b3bec2c7791b9 (diff)
fix for c++11
Diffstat (limited to 'training/mira')
-rw-r--r--training/mira/kbest_cut_mira.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/training/mira/kbest_cut_mira.cc b/training/mira/kbest_cut_mira.cc
index 3b1108e0..990609d7 100644
--- a/training/mira/kbest_cut_mira.cc
+++ b/training/mira/kbest_cut_mira.cc
@@ -49,13 +49,6 @@ bool sent_approx;
bool checkloss;
bool stream;
-void SanityCheck(const vector<double>& w) {
- for (int i = 0; i < w.size(); ++i) {
- assert(!isnan(w[i]));
- assert(!isinf(w[i]));
- }
-}
-
struct FComp {
const vector<double>& w_;
FComp(const vector<double>& w) : w_(w) {}