Skip to content

Commit

Permalink
check for equality
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 22, 2012
1 parent d27ca42 commit 33a03c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/evaluation/ContingencyTableEvaluation.cpp
Expand Up @@ -91,14 +91,14 @@ void CContingencyTableEvaluation::compute_scores(CBinaryLabels* predicted, CBina
{
if (ground_truth->get_label(i)==1)
{
if (predicted->get_label(i)>=1)
if (predicted->get_label(i)==1)
m_TP += 1.0;
else
m_FN += 1.0;
}
else
{
if (predicted->get_label(i)>=1)
if (predicted->get_label(i)==1)
m_FP += 1.0;
else
m_TN += 1.0;
Expand Down

0 comments on commit 33a03c0

Please sign in to comment.