Skip to content

Commit

Permalink
bugfix: removed valid check since this case has to be allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed May 22, 2012
1 parent 75cc249 commit 0cb67a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/shogun/evaluation/ContingencyTableEvaluation.cpp
Expand Up @@ -17,7 +17,11 @@ float64_t CContingencyTableEvaluation::evaluate(CLabels* predicted, CLabels* gro
{
ASSERT(predicted->get_label_type()==LT_BINARY);
ASSERT(ground_truth->get_label_type()==LT_BINARY);
predicted->ensure_valid();

/* commented out: what if a machine only returns +1 in apply() ??
* Heiko Strathamn */
// predicted->ensure_valid();

ground_truth->ensure_valid();
compute_scores((CBinaryLabels*)predicted,(CBinaryLabels*)ground_truth);
switch (m_type)
Expand Down

0 comments on commit 0cb67a7

Please sign in to comment.