Skip to content

Commit

Permalink
fix warning in multiclass accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Feb 14, 2012
1 parent 107e9f9 commit 7cf941e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shogun/evaluation/MulticlassAccuracy.cpp
Expand Up @@ -28,7 +28,7 @@ float64_t CMulticlassAccuracy::evaluate(CLabels* predicted, CLabels* ground_trut
return accuracy;
}

SGMatrix<int32_t> CMulticlassAccuracy::confusion_matrix(CLabels* predicted, CLabels* ground_truth)
SGMatrix<int32_t> CMulticlassAccuracy::get_confusion_matrix(CLabels* predicted, CLabels* ground_truth)
{
ASSERT(predicted->get_num_labels() == ground_truth->get_num_labels());
int32_t length = ground_truth->get_num_labels();
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/evaluation/MulticlassAccuracy.h
Expand Up @@ -52,7 +52,7 @@ class CMulticlassAccuracy: public CEvaluation
* @param ground_truth labels assumed to be correct
* @return confusion matrix
*/
SGMatrix<int32_t> confusion_matrix(CLabels* predicted, CLabels* ground_truth);
SGMatrix<int32_t> get_confusion_matrix(CLabels* predicted, CLabels* ground_truth);

inline EEvaluationDirection get_evaluation_direction()
{
Expand Down

0 comments on commit 7cf941e

Please sign in to comment.