SHOGUN  3.2.1
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
FactorGraphFeatures.h
浏览该文件的文档.
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) 2013 Shell Hu
8  * Copyright (C) 2013 Shell Hu
9  */
10 
11 #ifndef __FACTORGRAPH_FEATURES_H__
12 #define __FACTORGRAPH_FEATURES_H__
13 
16 
17 namespace shogun
18 {
19 
24 {
25  public:
28 
33  CFactorGraphFeatures(int32_t num_samples);
34 
35  virtual ~CFactorGraphFeatures();
36 
41  virtual CFeatures* duplicate() const;
42 
47  virtual EFeatureType get_feature_type() const;
48 
53  virtual EFeatureClass get_feature_class() const;
54 
59  virtual int32_t get_num_vectors() const;
60 
65  virtual const char* get_name() const { return "FactorGraphFeatures"; }
66 
72  bool add_sample(CFactorGraph* fg);
73 
80 
87 
88  protected:
91 
92  private:
94  void init();
95 };
96 
97 }
98 
99 #endif /* __FACTORGRAPH_FEATURES_H__ */
virtual EFeatureType get_feature_type() const
CDynamicObjectArray * m_samples
int32_t index_t
Definition: common.h:60
CFactorGraph * get_sample(index_t idx)
virtual int32_t get_num_vectors() const
EFeatureClass
shogun feature class
Definition: FeatureTypes.h:35
bool add_sample(CFactorGraph *fg)
static CFactorGraphFeatures * obtain_from_generic(CFeatures *base_feats)
CFactorGraphFeatures maintains an array of factor graphs, each graph is a sample, i...
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual CFeatures * duplicate() const
EFeatureType
shogun feature type
Definition: FeatureTypes.h:16
virtual const char * get_name() const
Class CFactorGraph a factor graph is a structured input in general.
Definition: FactorGraph.h:25
The class Features is the base class of all feature objects.
Definition: Features.h:62
virtual EFeatureClass get_feature_class() const

SHOGUN 机器学习工具包 - 项目文档