11 #ifndef __FACTOR_RELATED_H__ 12 #define __FACTOR_RELATED_H__ 14 #include <shogun/lib/config.h> 49 virtual const char*
get_name()
const {
return "FactorDataSource"; }
125 virtual const char*
get_name()
const {
return "Factor"; }
140 const int32_t get_num_vars()
const;
171 bool is_data_dependent()
const;
174 bool is_data_sparse()
const;
185 float64_t get_energy(int32_t index)
const;
196 void set_energy(int32_t ei,
float64_t value);
205 void compute_energies();
virtual const char * get_name() const
virtual bool is_sparse() const
virtual const char * get_name() const
virtual SGVector< float64_t > get_data() const
virtual void set_data_sparse(SGSparseVectorEntry< float64_t > *sparse, int32_t dlen)
Class SGObject is the base class of all shogun objects.
SGSparseVector< float64_t > m_data_sparse
SGVector< int32_t > m_var_index
virtual SGSparseVector< float64_t > get_data_sparse() const
Class CFactorDataSource Source for factor data. In some cases, the same data can be shared by many fa...
virtual void set_data(SGVector< float64_t > dense)
all of classes and functions are contained in the shogun namespace
Class CTableFactorType the way that store assignments of variables and energies in a table or a multi...
virtual ~CFactorDataSource()
CTableFactorType * m_factor_type
Class CFactor A factor is defined on a clique in the factor graph. Each factor can have its own data...
SGVector< float64_t > m_data
CFactorDataSource * m_data_source
SGVector< float64_t > m_energies