77 void CFactorGraphFeatures::init()
85 REQUIRE(base_feats != NULL,
"CFactorGraphFeatures::obtain_from_generic(): base_feats is NULL!\n");
88 return dynamic_cast<CFactorGraphFeatures*>(base_feats);
90 SG_SERROR(
"base_labels must be of dynamic type CFactorGraph!\n")
virtual EFeatureType get_feature_type() const
CDynamicObjectArray * m_samples
CFactorGraph * get_sample(index_t idx)
virtual int32_t get_num_vectors() const
EFeatureClass
shogun feature class
Class SGObject is the base class of all shogun objects.
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...
virtual EFeatureClass get_feature_class() const =0
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
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
Class CFactorGraph a factor graph is a structured input in general.
The class Features is the base class of all feature objects.
CSGObject * get_element(int32_t index) const
void push_back(CSGObject *e)
virtual ~CFactorGraphFeatures()
virtual EFeatureClass get_feature_class() const