Skip to content

Commit

Permalink
Removed 32bit integer labels constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jan 3, 2012
1 parent 5197553 commit f7e0b56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
14 changes: 0 additions & 14 deletions src/shogun/features/Labels.cpp
Expand Up @@ -42,20 +42,6 @@ CLabels::CLabels(SGVector<float64_t> src)
m_num_classes=get_num_classes();
}

CLabels::CLabels(SGVector<int32_t> src)
: CSGObject()
{
init();

SGVector<float64_t> converted(src.vlen);
for (int32_t i=0; i<src.vlen; i++)
converted[i] = (float64_t)src[i];
src.free_vector();

set_labels(converted);
m_num_classes=get_num_classes();
}

CLabels::CLabels(SGVector<int64_t> src)
: CSGObject()
{
Expand Down
6 changes: 0 additions & 6 deletions src/shogun/features/Labels.h
Expand Up @@ -50,12 +50,6 @@ class CLabels : public CSGObject
*/
CLabels(SGVector<float64_t> src);

/** constructor
*
* @param labels labels
*/
CLabels(SGVector<int32_t> labels);

/** constructor
*
* @param labels labels
Expand Down

0 comments on commit f7e0b56

Please sign in to comment.