Skip to content

Commit

Permalink
Fixed multiclass problem-type.
Browse files Browse the repository at this point in the history
  • Loading branch information
pluskid committed May 22, 2012
1 parent df320e8 commit 52d53fd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/machine/Machine.h
Expand Up @@ -77,7 +77,8 @@ enum EMachineType
CT_QDA = 430,
CT_NEWTONSVM = 440,
CT_GAUSSIANPROCESSREGRESSION = 450,
CT_LARS = 460
CT_LARS = 460,
CT_MULTICLASS = 470
};

/** solver type */
Expand Down
12 changes: 12 additions & 0 deletions src/shogun/machine/MulticlassMachine.h
Expand Up @@ -122,6 +122,18 @@ class CMulticlassMachine : public CMachine
return "MulticlassMachine";
}

virtual EProblemType get_machine_problem_type() const
{
return PT_MULTICLASS;
}

/** get classifier type
*/
virtual EMachineType get_classifier_type()
{
return CT_MULTICLASS;
}

protected:
/** init strategy */
void init_strategy();
Expand Down

0 comments on commit 52d53fd

Please sign in to comment.