SHOGUN
v2.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
shogun
multiclass
tree
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
14
#include <
shogun/machine/BaseMulticlassMachine.h
>
15
#include <
shogun/multiclass/tree/TreeMachineNode.h
>
16
17
namespace
shogun
18
{
19
23
template
<
class
T>
class
CTreeMachine
:
public
CBaseMulticlassMachine
24
{
25
public
:
27
typedef
CTreeMachineNode<T>
node_t
;
28
30
CTreeMachine
()
31
:
m_root
(NULL)
32
{
33
SG_ADD
((
CSGObject
**)&
m_root
,
"m_root"
,
"tree structure"
,
MS_NOT_AVAILABLE
);
34
}
35
37
virtual
~CTreeMachine
()
38
{
39
SG_UNREF
(
m_root
);
40
}
41
43
virtual
const
char
*
get_name
()
const
{
return
"TreeMachine"
; }
44
45
protected
:
47
CTreeMachineNode<T>
*
m_root
;
48
};
49
50
}
/* shogun */
51
52
#endif
/* end of include guard: TREEMACHINE_H__ */
53
SHOGUN
Machine Learning Toolbox - Documentation