26 #ifndef GUM_LEARNING_SCORE_BDEU_H 27 #define GUM_LEARNING_SCORE_BDEU_H 55 template <
template <
typename >
class ALLOC = std::allocator >
90 const std::vector< std::pair< std::size_t, std::size_t >,
91 ALLOC< std::pair< std::size_t, std::size_t > > >&
200 double weight = 1.0f);
212 virtual
double _score(const
IdSet< ALLOC >& idset) final;
215 #ifndef DOXYGEN_SHOULD_SKIP_THIS 232 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
the class for computing BDeu scores
virtual ScoreBDeu< ALLOC > * clone() const
virtual copy constructor
The class for computing Log2 (Gamma(x))
the class for computing BDeu scores
virtual const Apriori< ALLOC > & internalApriori() const final
returns the internal apriori of the score
The base class for all the scores used for learning (BIC, BDeu, etc)
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set...
the base class for all a priori
The class for computing Log2 (Gamma(x)).
virtual ~ScoreBDeu()
destructor
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
gum is the global namespace for all aGrUM entities
the internal apriori for the BDeu score (N' / (r_i * q_i)BDeu is a BD score with a N'/(r_i * q_i) apr...
const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > & ranges() const
returns the current ranges
void setEffectiveSampleSize(double ess)
sets the effective sample size of the internal apriori
virtual double _score(const IdSet< ALLOC > &idset) final
returns the score for a given IdSet
Set of pairs of elements with fast search for both elements.
virtual std::string isAprioriCompatible() const final
indicates whether the apriori is compatible (meaningful) with the score
the base class for all the scores used for learning (BIC, BDeu, etc)
ScoreBDeu< ALLOC > & operator=(const ScoreBDeu< ALLOC > &from)
copy operator
ScoreBDeu(const DBRowGeneratorParser< ALLOC > &parser, const Apriori< ALLOC > &apriori, const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > &ranges, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
Size NodeId
Type for node ids.
the internal apriori for the BDeu score (N' / (r_i * q_i)