aGrUM  0.13.2
gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc > Class Template Reference

the internal apriori for the scores without apriori (e.g., BD)Some scores include an apriori. More...

#include <scoreInternalNoApriori.h>

+ Inheritance diagram for gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >:
+ Collaboration diagram for gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >:

Public Member Functions

Constructors / Destructors
 ScoreInternalNoApriori ()
 default constructor More...
 
virtual ScoreInternalNoApriori< IdSetAlloc, CountAlloc > * copyFactory () const final
 virtual copy constructor More...
 
 ScoreInternalNoApriori (const ScoreInternalNoApriori< IdSetAlloc, CountAlloc > &from)
 copy constructor More...
 
 ScoreInternalNoApriori (ScoreInternalNoApriori< IdSetAlloc, CountAlloc > &&from)
 move constructor More...
 
virtual ~ScoreInternalNoApriori ()
 destructor More...
 
Accessors / Modifiers
virtual void insertScoreApriori (const std::vector< Size > &modalities, std::vector< std::vector< double, CountAlloc > > &counts, const std::vector< std::pair< std::vector< Idx, IdSetAlloc >, Idx > * > &target_nodesets, const std::vector< std::pair< std::vector< Idx, IdSetAlloc >, Idx > * > &conditioning_nodesets) final
 insert the internal score apriori into a set of countings More...
 
virtual bool isInformative () const final
 indicates whether the apriori is potentially informative More...
 

Detailed Description

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
class gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >

the internal apriori for the scores without apriori (e.g., BD)

Some scores include an apriori.

For instance, the K2 score is a BD score with a Laplace Apriori ( smoothing(1) ). BDeu is a BD score with a N'/(r_i * q_i) apriori, where N' is an effective sample size and r_i is the domain size of the target variable and q_i is the domain size of the Cartesian product of its parents. The goal of the score's internal apriori classes is to enable to account for these aprioris outside the score, e.g., when performing parameter estimation. It is important to note that, to be meaningfull a structure + parameter learning requires that the same aprioris are taken into account during structure learning and parameter learning.

Definition at line 68 of file scoreInternalNoApriori.h.

Constructor & Destructor Documentation

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::ScoreInternalNoApriori ( )

default constructor

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::ScoreInternalNoApriori ( const ScoreInternalNoApriori< IdSetAlloc, CountAlloc > &  from)

copy constructor

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::ScoreInternalNoApriori ( ScoreInternalNoApriori< IdSetAlloc, CountAlloc > &&  from)

move constructor

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
virtual gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::~ScoreInternalNoApriori ( )
virtual

destructor

Member Function Documentation

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
virtual ScoreInternalNoApriori< IdSetAlloc, CountAlloc >* gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::copyFactory ( ) const
finalvirtual
template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
virtual void gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::insertScoreApriori ( const std::vector< Size > &  modalities,
std::vector< std::vector< double, CountAlloc > > &  counts,
const std::vector< std::pair< std::vector< Idx, IdSetAlloc >, Idx > * > &  target_nodesets,
const std::vector< std::pair< std::vector< Idx, IdSetAlloc >, Idx > * > &  conditioning_nodesets 
)
finalvirtual

insert the internal score apriori into a set of countings

Implements gum::learning::ScoreInternalApriori< IdSetAlloc, CountAlloc >.

template<typename IdSetAlloc = std::allocator< Idx >, typename CountAlloc = std::allocator< double >>
virtual bool gum::learning::ScoreInternalNoApriori< IdSetAlloc, CountAlloc >::isInformative ( ) const
finalvirtual

indicates whether the apriori is potentially informative

Reimplemented from gum::learning::ScoreInternalApriori< IdSetAlloc, CountAlloc >.


The documentation for this class was generated from the following file: