Skip to content

Commit

Permalink
output some more reasonable error messages in CMachine::apply_* methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 21, 2012
1 parent 6e7f947 commit 8d2101e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shogun/machine/Machine.cpp
Expand Up @@ -163,19 +163,19 @@ CLabels* CMachine::apply(CFeatures* data)

CBinaryLabels* CMachine::apply_binary(CFeatures* data)
{
SG_NOTIMPLEMENTED;
SG_ERROR("This machine does not support apply_binary()\n");
return NULL;
}

CRealLabels* CMachine::apply_regression(CFeatures* data)
{
SG_NOTIMPLEMENTED;
SG_ERROR("This machine does not support apply_regression()\n");
return NULL;
}

CMulticlassLabels* CMachine::apply_multiclass(CFeatures* data)
{
SG_NOTIMPLEMENTED;
SG_ERROR("This machine does not support apply_multiclass()\n");
return NULL;
}

Expand Down

0 comments on commit 8d2101e

Please sign in to comment.