Skip to content

Commit

Permalink
Fixed sizes of ROC and PRC graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 8, 2012
1 parent 276fa54 commit a2c0e99
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/PRCEvaluation.cpp
Expand Up @@ -45,7 +45,7 @@ float64_t CPRCEvaluation::evaluate(CLabels* predicted, CLabels* ground_truth)

// clean and initialize graph and auPRC
SG_FREE(labels);
m_PRC_graph = SGMatrix<float64_t>(length,2);
m_PRC_graph = SGMatrix<float64_t>(2,length);
m_thresholds = SGVector<float64_t>(length);
m_auPRC = 0.0;

Expand Down
2 changes: 1 addition & 1 deletion src/shogun/evaluation/ROCEvaluation.cpp
Expand Up @@ -60,7 +60,7 @@ float64_t CROCEvaluation::evaluate(CLabels* predicted, CLabels* ground_truth)
SG_FREE(labels);

// initialize graph and auROC
m_ROC_graph = SGMatrix<float64_t>(diff_count+1,2);
m_ROC_graph = SGMatrix<float64_t>(2,diff_count+1);
m_thresholds = SGVector<float64_t>(length);
m_auROC = 0.0;

Expand Down

0 comments on commit a2c0e99

Please sign in to comment.