Skip to content

Commit

Permalink
add tree business to modular interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Aug 8, 2012
1 parent 5bb8506 commit 47a593d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/interfaces/modular/Multiclass.i
Expand Up @@ -9,6 +9,16 @@
*/

/* Remove C Prefix */
%rename(BalancedConditionalProbabilityTree) CBalancedConditionalProbabilityTree;
%rename(ConditionalProbabilityTree) CConditionalProbabilityTree;
%rename(RandomConditionalProbabilityTree) CRandomConditionalProbabilityTree;
%rename(RelaxedTree) CRelaxedTree;
%rename(RelaxedTreeNodeData) CRelaxedTreeNodeData;
%rename(RelaxedTreeUtil) CRelaxedTreeUtil;
%rename(TreeMachine) CTreeMachine;
%rename(TreeMachineNode) CTreeMachineNode;
%rename(VwConditionalProbabilityTree) VwConditionalProbabilityTree;

%rename(RejectionStrategy) CRejectionStrategy;
%rename(ThresholdRejectionStrategy) CThresholdRejectionStrategy;
%rename(DixonQTestRejectionStrategy) CDixonQTestRejectionStrategy;
Expand Down Expand Up @@ -56,6 +66,16 @@
%rename(ShareBoost) CShareBoost;

/* Include Class Headers to make them visible from within the target language */
%include <shogun/multiclass/tree/BalancedConditionalProbabilityTree.h>
%include <shogun/multiclass/tree/ConditionalProbabilityTree.h>
%include <shogun/multiclass/tree/RandomConditionalProbabilityTree.h>
%include <shogun/multiclass/tree/RelaxedTree.h>
%include <shogun/multiclass/tree/RelaxedTreeNodeData.h>
%include <shogun/multiclass/tree/RelaxedTreeUtil.h>
%include <shogun/multiclass/tree/TreeMachine.h>
%include <shogun/multiclass/tree/TreeMachineNode.h>
%include <shogun/multiclass/tree/VwConditionalProbabilityTree.h>

%include <shogun/multiclass/RejectionStrategy.h>
%include <shogun/multiclass/MulticlassStrategy.h>
%include <shogun/multiclass/MulticlassOneVsRestStrategy.h>
Expand Down
10 changes: 10 additions & 0 deletions src/interfaces/modular/Multiclass_includes.i
@@ -1,4 +1,14 @@
%{
#include <shogun/multiclass/tree/BalancedConditionalProbabilityTree.h>
#include <shogun/multiclass/tree/ConditionalProbabilityTree.h>
#include <shogun/multiclass/tree/RandomConditionalProbabilityTree.h>
#include <shogun/multiclass/tree/RelaxedTree.h>
#include <shogun/multiclass/tree/RelaxedTreeNodeData.h>
#include <shogun/multiclass/tree/RelaxedTreeUtil.h>
#include <shogun/multiclass/tree/TreeMachine.h>
#include <shogun/multiclass/tree/TreeMachineNode.h>
#include <shogun/multiclass/tree/VwConditionalProbabilityTree.h>

#include <shogun/multiclass/RejectionStrategy.h>
#include <shogun/multiclass/MulticlassStrategy.h>
#include <shogun/multiclass/MulticlassOneVsRestStrategy.h>
Expand Down

0 comments on commit 47a593d

Please sign in to comment.