11 #ifndef __FACTORGRAPH_H__
12 #define __FACTORGRAPH_H__
49 virtual const char*
get_name()
const {
return "FactorGraph"; }
139 void register_parameters();
float64_t evaluate_energy(const SGVector< int32_t > state) const
void add_factor(CFactor *factor)
void add_data_source(CFactorDataSource *datasource)
int32_t get_num_edges() const
bool is_tree_graph() const
int32_t get_num_factors() const
CDynamicObjectArray * get_factors() const
CDisjointSet * get_disjoint_set() const
CDynamicObjectArray * m_datasources
void set_cardinalities(SGVector< int32_t > cards)
Class SGObject is the base class of all shogun objects.
CDynamicObjectArray * get_factor_data_sources() const
int32_t get_num_vars() const
Class CFactorGraphObservation is used as the structured output.
Class CFactorDataSource Source for factor data. In some cases, the same data can be shared by many fa...
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
Class CDisjointSet data structure for linking graph nodes It's easy to identify connected graph...
SGVector< float64_t > evaluate_energies() const
all of classes and functions are contained in the shogun namespace
CDynamicObjectArray * m_factors
Class CFactorGraph a factor graph is a structured input in general.
bool is_acyclic_graph() const
void connect_components()
SGVector< int32_t > get_cardinalities() const
virtual void loss_augmentation(CFactorGraphObservation *gt)
SGVector< int32_t > m_cardinalities
Class CFactor A factor is defined on a clique in the factor graph. Each factor can have its own data...
virtual const char * get_name() const
bool is_connected_graph() const