Skip to content

Commit

Permalink
Merge branch 'normalized-mutual-info' of git://github.com/pluskid/shogun
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Apr 8, 2012
2 parents 126a1de + 00ded34 commit 79a91ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/shogun/evaluation/ClusteringEvaluation.cpp
Expand Up @@ -49,9 +49,9 @@ void CClusteringEvaluation::best_map(CLabels* predicted, CLabels* ground_truth)
SGMatrix<float64_t> G(n_class, n_class);
G.zero();

for (size_t i=0; i < label_g.vlen; ++i)
for (int32_t i=0; i < label_g.vlen; ++i)
{
for (size_t j=0; j < label_p.vlen; ++j)
for (int32_t j=0; j < label_p.vlen; ++j)
{
G(i, j)=find_mismatch_count(groundtruth_ilabels, static_cast<int32_t>(label_g[i]),
predicted_ilabels, static_cast<int32_t>(label_p[j]));
Expand All @@ -62,9 +62,9 @@ void CClusteringEvaluation::best_map(CLabels* predicted, CLabels* ground_truth)
munkres_solver.solve();

std::map<int32_t, int32_t> label_map;
for (size_t i=0; i < label_p.vlen; ++i)
for (int32_t i=0; i < label_p.vlen; ++i)
{
for (size_t j=0; j < label_g.vlen; ++j)
for (int32_t j=0; j < label_g.vlen; ++j)
{
if (G(j, i) == 0)
{
Expand Down

0 comments on commit 79a91ad

Please sign in to comment.