11 #ifndef __FACTORGRAPH_H__ 12 #define __FACTORGRAPH_H__ 14 #include <shogun/lib/config.h> 49 virtual const char*
get_name()
const {
return "FactorGraph"; }
139 void register_parameters();
void add_factor(CFactor *factor)
void add_data_source(CFactorDataSource *datasource)
SGVector< float64_t > evaluate_energies() const
CDynamicObjectArray * get_factors() const
CDynamicObjectArray * m_datasources
bool is_tree_graph() const
int32_t get_num_edges() const
bool is_connected_graph() const
void set_cardinalities(SGVector< int32_t > cards)
Class SGObject is the base class of all shogun objects.
virtual const char * get_name() 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...
SGVector< int32_t > get_cardinalities() const
CDynamicObjectArray * get_factor_data_sources() const
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
int32_t get_num_factors() const
Class CDisjointSet data structure for linking graph nodes It's easy to identify connected graph...
CDisjointSet * get_disjoint_set() const
bool is_acyclic_graph() const
float64_t evaluate_energy(const SGVector< int32_t > state) const
all of classes and functions are contained in the shogun namespace
int32_t get_num_vars() const
CDynamicObjectArray * m_factors
Class CFactorGraph a factor graph is a structured input in general.
void connect_components()
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...