Skip to content

Commit

Permalink
use get_label() in contingencytableeval
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 22, 2012
1 parent cc662e7 commit d27ca42
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_confidence(i)>=1)
if (predicted->get_label(i)>=1)
m_TP += 1.0;
else
m_FN += 1.0;
}
else
{
if (predicted->get_confidence(i)>=1)
if (predicted->get_label(i)>=1)
m_FP += 1.0;
else
m_TN += 1.0;
Expand Down

0 comments on commit d27ca42

Please sign in to comment.