From 3043105abf7e94d0d02e69c023ef181d7e455563 Mon Sep 17 00:00:00 2001 From: ariel faigon Date: Fri, 12 Aug 2016 15:02:07 -0700 Subject: [PATCH 1/2] https://github.com/JohnLangford/vowpal_wabbit/issues/1067: improve invalid label prediction warning in cost_sensitive.cc --- vowpalwabbit/cost_sensitive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vowpalwabbit/cost_sensitive.cc b/vowpalwabbit/cost_sensitive.cc index 8e04e8daf5e..503394db0f2 100644 --- a/vowpalwabbit/cost_sensitive.cc +++ b/vowpalwabbit/cost_sensitive.cc @@ -234,7 +234,7 @@ void output_example(vw& all, example& ec) min = cl.x; } if (chosen_loss == FLT_MAX) - cerr << "warning: csoaa predicted an invalid class" << endl; + cerr << "warning: csoaa predicted an invalid class. Are all muti-class labels in the {1..k} range?" << endl; loss = chosen_loss - min; } From b58f125b90d2a1bd882e1e9fbdea5aaaa762b591 Mon Sep 17 00:00:00 2001 From: ariel faigon Date: Fri, 12 Aug 2016 15:06:26 -0700 Subject: [PATCH 2/2] cost_sensitive.cc: spelling fix: s/muti/multi/ --- vowpalwabbit/cost_sensitive.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vowpalwabbit/cost_sensitive.cc b/vowpalwabbit/cost_sensitive.cc index 503394db0f2..6f9c51f9764 100644 --- a/vowpalwabbit/cost_sensitive.cc +++ b/vowpalwabbit/cost_sensitive.cc @@ -234,7 +234,7 @@ void output_example(vw& all, example& ec) min = cl.x; } if (chosen_loss == FLT_MAX) - cerr << "warning: csoaa predicted an invalid class. Are all muti-class labels in the {1..k} range?" << endl; + cerr << "warning: csoaa predicted an invalid class. Are all multi-class labels in the {1..k} range?" << endl; loss = chosen_loss - min; }