26 #ifndef GUM_LEARNING_SCORE_BIC_H 27 #define GUM_LEARNING_SCORE_BIC_H 48 template <
template <
typename >
class ALLOC = std::allocator >
82 const std::vector< std::pair< std::size_t, std::size_t >,
83 ALLOC< std::pair< std::size_t, std::size_t > > >&
191 double N(const
IdSet< ALLOC >& idset);
200 double weight = 1.0f);
212 virtual
double _score(const
IdSet< ALLOC >& idset) final;
215 #ifndef DOXYGEN_SHOULD_SKIP_THIS 229 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
double N(const IdSet< ALLOC > &idset)
returns the size of the database w.r.t. a given idset
virtual ScoreBIC< ALLOC > * clone() const
virtual copy constructor
The base class for all the scores used for learning (BIC, BDeu, etc)
ScoreBIC< ALLOC > & operator=(const ScoreBIC< ALLOC > &from)
copy operator
virtual ~ScoreBIC()
destructor
the no a priori class: corresponds to 0 weight-sample
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
virtual std::string isAprioriCompatible() const final
indicates whether the apriori is compatible (meaningful) with the score
the class for computing BIC scores
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
gum is the global namespace for all aGrUM entities
virtual double _score(const IdSet< ALLOC > &idset) final
returns the score for a given IdSet
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
ScoreBIC(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
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
the class for computing BIC scores
Set of pairs of elements with fast search for both elements.
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)
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 no a priori class: corresponds to 0 weight-sample