Skip to content

Commit

Permalink
Rejection strategies fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Mar 10, 2012
1 parent 0e176ef commit 835eb0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/features/RejectionStrategy.h
Expand Up @@ -52,7 +52,7 @@ class CThresholdReject : public CRejectionStrategy
/** get name */
virtual const char* get_name() const
{
return "AllNegativesMulticlassReject";
return "ThresholdReject";
}

/** returns true if given output set leads to rejection */
Expand All @@ -68,6 +68,7 @@ class CThresholdReject : public CRejectionStrategy

protected:

/** threshold */
float64_t m_threshold;


Expand Down
1 change: 1 addition & 0 deletions src/shogun/machine/MulticlassMachine.h
Expand Up @@ -118,6 +118,7 @@ class CMulticlassMachine : public CMachine
/** set rejection strategy */
inline void set_rejection_strategy(CRejectionStrategy* rejection_strategy)
{
SG_UNREF(m_rejection_strategy);
m_rejection_strategy = rejection_strategy;
}

Expand Down

0 comments on commit 835eb0b

Please sign in to comment.