SHOGUN  v3.1.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TreeMachine.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Chiyuan Zhang
8  * Copyright (C) 2012 Chiyuan Zhang
9  */
10 
11 #ifndef TREEMACHINE_H__
12 #define TREEMACHINE_H__
13 
16 
17 namespace shogun
18 {
19 
23 template <class T> class CTreeMachine: public CBaseMulticlassMachine
24 {
25 public:
28 
31  :m_root(NULL)
32  {
33  SG_ADD((CSGObject**)&m_root,"m_root", "tree structure", MS_NOT_AVAILABLE);
34  }
35 
37  virtual ~CTreeMachine()
38  {
40  }
41 
43  virtual const char* get_name() const { return "TreeMachine"; }
44 
45 protected:
48 };
49 
50 } /* shogun */
51 
52 #endif /* end of include guard: TREEMACHINE_H__ */
53 
CTreeMachineNode< T > node_t
Definition: TreeMachine.h:27
#define SG_UNREF(x)
Definition: SGRefObject.h:35
CTreeMachineNode< T > * m_root
Definition: TreeMachine.h:47
virtual ~CTreeMachine()
Definition: TreeMachine.h:37
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:102
virtual const char * get_name() const
Definition: TreeMachine.h:43
class TreeMachine, a base class for tree based multiclass classifiers
Definition: TreeMachine.h:23
#define SG_ADD(...)
Definition: SGObject.h:71

SHOGUN Machine Learning Toolbox - Documentation