Skip to content

Commit

Permalink
fixed returns in train_function
Browse files Browse the repository at this point in the history
  • Loading branch information
gsomix committed Jun 10, 2012
1 parent 1914e86 commit 60a7f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shogun/machine/DirectorKernelMachine.h
Expand Up @@ -66,7 +66,7 @@ IGNORE_IN_CLASSLIST class CDirectorKernelMachine : public CKernelMachine
virtual bool train_function(CFeatures* data=NULL)
{
SG_ERROR("Train function of Director Kernel Machine needs to be overridden.\n");
return 0;
return false;
}

/** apply machine to data
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/machine/DirectorLinearMachine.h
Expand Up @@ -53,7 +53,7 @@ IGNORE_IN_CLASSLIST class CDirectorLinearMachine : public CLinearMachine
virtual bool train_function(CFeatures* data=NULL)
{
SG_ERROR("Train function of Director Linear Machine needs to be overridden.\n");
return 0;
return false;
}

/** set features
Expand Down

0 comments on commit 60a7f70

Please sign in to comment.