Skip to content

Commit

Permalink
Revert "Splitted methods in apply macro in Machine.i."
Browse files Browse the repository at this point in the history
This reverts commit 40e4ea3fc603d90903274dac0e005a927fd88e3a.
  • Loading branch information
lisitsyn authored and Soeren Sonnenburg committed May 22, 2012
1 parent 5b12cea commit f575c12
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/interfaces/modular/Machine.i
Expand Up @@ -22,42 +22,30 @@
%define APPLY_MULTICLASS(CLASS)
%extend CLASS
{
CMulticlassLabels* apply(CFeatures* data)
CMulticlassLabels* apply(CFeatures* data=NULL)
{
return $self->apply_multiclass(data);
}
CMulticlassLabels* apply()
{
return $self->apply_multiclass();
}
}
%enddef

%define APPLY_BINARY(CLASS)
%extend CLASS
{
CBinaryLabels* apply(CFeatures* data)
CBinaryLabels* apply(CFeatures* data=NULL)
{
return $self->apply_binary(data);
}
CBinaryLabels* apply()
{
return $self->apply_binary();
}
}
%enddef

%define APPLY_REGRESSION(CLASS)
%extend CLASS
{
CRegressionLabels* apply(CFeatures* data)
CRegressionLabels* apply(CFeatures* data=NULL)
{
return $self->apply_regression(data);
}
CRegressionLabels* apply()
{
return $self->apply_regression();
}
}
%enddef

Expand Down

0 comments on commit f575c12

Please sign in to comment.