SHOGUN
v3.2.0
Main Page
Modules
Classes
Files
File List
File Members
src
shogun
multiclass
tree
RelaxedTreeNodeData.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 RELAXEDTREENODEDATA_H__
12
#define RELAXEDTREENODEDATA_H__
13
14
#include <
shogun/lib/SGVector.h
>
15
16
namespace
shogun
17
{
18
20
struct
RelaxedTreeNodeData
21
{
23
SGVector<int32_t>
mu
;
24
26
static
void
print_data
(
const
RelaxedTreeNodeData
&data)
27
{
28
SG_SPRINT
(
"left=("
)
29
for
(int32_t i=0; i < data.
mu
.
vlen
; ++i)
30
if
(data.
mu
[i] == -1 || data.
mu
[i] == 0)
31
SG_SPRINT
(
"%4d"
, i)
32
SG_SPRINT
(
"), right=("
)
33
for
(int32_t i=0; i < data.
mu
.
vlen
; ++i)
34
if
(data.
mu
[i] == 1 || data.
mu
[i] == 0)
35
SG_SPRINT
(
"%4d"
, i)
36
SG_SPRINT
(
")\n"
)
37
}
38
};
39
40
}
/* shogun */
41
42
#endif
/* end of include guard: RELAXEDTREENODEDATA_H__ */
43
shogun::RelaxedTreeNodeData::print_data
static void print_data(const RelaxedTreeNodeData &data)
Definition:
RelaxedTreeNodeData.h:26
shogun::RelaxedTreeNodeData
Definition:
RelaxedTreeNodeData.h:20
shogun::RelaxedTreeNodeData::mu
SGVector< int32_t > mu
Definition:
RelaxedTreeNodeData.h:23
SG_SPRINT
#define SG_SPRINT(...)
Definition:
SGIO.h:182
shogun::SGVector< int32_t >
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:16
SGVector.h
shogun::SGVector::vlen
index_t vlen
Definition:
SGVector.h:706
SHOGUN
Machine Learning Toolbox - Documentation