Skip to content

Commit

Permalink
+ problem type macro in Machine and + return PT in QDA
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias committed May 22, 2012
1 parent d7d1505 commit 09e6617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shogun/machine/Machine.h
Expand Up @@ -99,6 +99,8 @@ enum EProblemType
PT_MULTICLASS = 2
};

#define MACHINE_PROBLEM_TYPE(PT) virtual EProblemType get_machine_problem_type() const { return PT; }

/** @brief A generic learning machine interface.
*
* A machine takes as input CFeatures and (optionally) CLabels.
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/multiclass/QDA.h
Expand Up @@ -36,6 +36,8 @@ namespace shogun
class CQDA : public CNativeMulticlassMachine
{
public:
MACHINE_PROBLEM_TYPE(PT_MULTICLASS)

/** constructor
*
* @param tolerance tolerance used in training
Expand Down

0 comments on commit 09e6617

Please sign in to comment.