Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'master' of github.com:shogun-toolbox/shogun
  • Loading branch information
lisitsyn committed May 20, 2012
2 parents fc7021d + c4aca39 commit 101802d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/shogun/labels/RealLabels.h
Expand Up @@ -25,9 +25,11 @@ namespace shogun
class CRealLabels;
class CDenseLabels;

/** @brief Real Labels for multi-class classification
/** @brief Real Labels are real-valued labels
*
* valid values for labels are 0...nr_classes-1
* They are used for regression problems and as outputs of classifiers.
*
* valid values for labels are all real-valued numbers.
*/
class CRealLabels : public CDenseLabels
{
Expand Down
4 changes: 2 additions & 2 deletions src/shogun/multiclass/ecoc/ECOCDiscriminantEncoder.cpp
Expand Up @@ -89,9 +89,9 @@ void CECOCDiscriminantEncoder::binary_partition(const vector<int32_t>& classes)
vector<int32_t> part1(classes.begin(), classes.begin()+isplit);
vector<int32_t> part2(classes.begin()+isplit, classes.end());
run_sffs(part1, part2);
for (int32_t i=0; i < part1.size(); ++i)
for (size_t i=0; i < part1.size(); ++i)
m_codebook(m_code_idx, part1[i]) = +1;
for (int32_t i=0; i < part2.size(); ++i)
for (size_t i=0; i < part2.size(); ++i)
m_codebook(m_code_idx, part2[i]) = -1;
m_code_idx++;

Expand Down

0 comments on commit 101802d

Please sign in to comment.