Skip to content

Commit

Permalink
revert change - previous (simpler) solution was correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 6, 2012
1 parent cf38631 commit 7754d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/multiclass/MulticlassOneVsOneStrategy.cpp
Expand Up @@ -35,7 +35,7 @@ SGVector<int32_t> CMulticlassOneVsOneStrategy::train_prepare_next()
{
CMulticlassStrategy::train_prepare_next();

SGVector<int32_t> subset(m_orig_labels->get_num_labels(), false);
SGVector<int32_t> subset(m_orig_labels->get_num_labels());
int32_t tot=0;
for (int32_t k=0; k < m_orig_labels->get_num_labels(); ++k)
{
Expand All @@ -60,7 +60,7 @@ SGVector<int32_t> CMulticlassOneVsOneStrategy::train_prepare_next()
m_train_pair_idx_2=m_train_pair_idx_1+1;
}

return SGVector<int32_t>(subset.vector, tot, true);
return subset;
}

int32_t CMulticlassOneVsOneStrategy::decide_label(SGVector<float64_t> outputs)
Expand Down

0 comments on commit 7754d8c

Please sign in to comment.