Skip to content

Commit

Permalink
Made LibSVMOneClass do not require labels
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 22, 2012
1 parent 2741f89 commit 75cc249
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shogun/classifier/svm/LibSVMOneClass.h
Expand Up @@ -44,6 +44,9 @@ class CLibSVMOneClass : public CSVM
inline virtual const char* get_name() const { return "LibSVMOneClass"; }

protected:

virtual bool train_require_labels() const { return false; }

/** train SVM
*
* @param data training data (parameter can be avoided if distance or
Expand Down

0 comments on commit 75cc249

Please sign in to comment.