Skip to content

Commit

Permalink
make get_label_type pure virtual again
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 22, 2012
1 parent 31c9307 commit df320e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/shogun/labels/DenseLabels.h
Expand Up @@ -185,6 +185,12 @@ class CDenseLabels : public CLabels
/** @return object name */
inline virtual const char* get_name() const { return "Labels"; }

/** get label type
*
* @return label type (binary, multiclass, ...)
*/
virtual ELabelType get_label_type()=0;

public:
/** label designates classify reject */
static const int32_t REJECTION_LABEL = -2;
Expand Down
3 changes: 1 addition & 2 deletions src/shogun/labels/Labels.h
Expand Up @@ -58,8 +58,7 @@ class CLabels : public CSGObject
*
* @return label type (binary, multiclass, ...)
*/
//virtual ELabelType get_label_type()=0;
virtual ELabelType get_label_type() { return LT_REGRESSION; }
virtual ELabelType get_label_type()=0;

/** adds a subset of indices on top of the current subsets (possibly
* subset of subset. Calls subset_changed_post() afterwards
Expand Down

0 comments on commit df320e8

Please sign in to comment.