Skip to content

Commit

Permalink
fix label get_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 24, 2012
1 parent 1ff3824 commit 2be463b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/shogun/labels/BinaryLabels.h
Expand Up @@ -74,6 +74,10 @@ class CBinaryLabels : public CDenseLabels
*/
virtual ELabelType get_label_type();

/** @return object name */
inline virtual const char* get_name() const { return "BinaryLabels"; }


};
}
#endif
3 changes: 0 additions & 3 deletions src/shogun/labels/DenseLabels.h
Expand Up @@ -182,9 +182,6 @@ class CDenseLabels : public CLabels
*/
virtual int32_t get_num_labels();

/** @return object name */
inline virtual const char* get_name() const { return "Labels"; }

/** get label type
*
* @return label type (binary, multiclass, ...)
Expand Down
3 changes: 3 additions & 0 deletions src/shogun/labels/MulticlassLabels.h
Expand Up @@ -96,6 +96,9 @@ class CMulticlassLabels : public CDenseLabels
* @return number of classes
*/
int32_t get_num_classes();

/** @return object name */
inline virtual const char* get_name() const { return "MulticlassLabels"; }
};
}
#endif
3 changes: 3 additions & 0 deletions src/shogun/labels/RegressionLabels.h
Expand Up @@ -66,6 +66,9 @@ class CRegressionLabels : public CDenseLabels
* @return label type real
*/
virtual ELabelType get_label_type();

/** @return object name */
inline virtual const char* get_name() const { return "RegressionLabels"; }
};
}
#endif

0 comments on commit 2be463b

Please sign in to comment.