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 
55 
62 
64  virtual ~CIndexBlockTree();
65 
67  CIndexBlock* get_root_block() const;
68 
70  void set_root_block(CIndexBlock* root_block);
71 
76 
81 
85  virtual SGVector<float64_t> get_SLEP_ind_t() const;
86 
88  virtual EIndexBlockRelationType get_relation_type() const { return TREE; }
89 
91  bool is_general() const;
92 
94  const char* get_name() const { return "IndexBlockTree"; };
95 
96 protected:
97 
100 
102  bool m_general;
103 
106 
109 };
110 
111 }
112 #endif
113 
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