SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
IndexBlockTree.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  * Copyright (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef INDEXBLOCKTREE_H_
11 #define INDEXBLOCKTREE_H_
12 
13 #include <shogun/lib/config.h>
14 
16 #include <shogun/lib/SGMatrix.h>
17 #include <shogun/lib/SGVector.h>
18 #include <shogun/lib/common.h>
19 
20 namespace shogun
21 {
22 class CIndexBlock;
23 
31 {
32 public:
33 
36 
40  CIndexBlockTree(CIndexBlock* root_block);
41 
46  CIndexBlockTree(SGMatrix<float64_t> adjacency_matrix, bool include_supernode);
47 
48 #ifndef SWIG
49 
56 #endif
57 
64 
66  virtual ~CIndexBlockTree();
67 
69  CIndexBlock* get_root_block() const;
70 
72  void set_root_block(CIndexBlock* root_block);
73 
78 
83 
87  virtual SGVector<float64_t> get_SLEP_ind_t() const;
88 
90  virtual EIndexBlockRelationType get_relation_type() const { return TREE; }
91 
93  bool is_general() const;
94 
96  const char* get_name() const { return "IndexBlockTree"; };
97 
98 protected:
99 
102 
104  bool m_general;
105 
108 
111 };
112 
113 }
114 #endif
115 
SGVector< float64_t > m_precomputed_ind_t
virtual SGVector< float64_t > get_SLEP_ind_t() const
class IndexBlockTree used to represent tree guided feature relation.
virtual SGVector< index_t > get_SLEP_ind()
class IndexBlockRelation
const char * get_name() const
virtual SGVector< float64_t > get_SLEP_G()
CIndexBlock * m_root_block
void set_root_block(CIndexBlock *root_block)
SGVector< float64_t > m_precomputed_G
class IndexBlock used to represent contiguous indices of one group (e.g. block of related features) ...
Definition: IndexBlock.h:25
CIndexBlock * get_root_block() const
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual EIndexBlockRelationType get_relation_type() const

SHOGUN Machine Learning Toolbox - Documentation