47#ifndef GUM_LEARNING_PRIOR_DIRICHLET_FROM_DATABASE_H
48#define GUM_LEARNING_PRIOR_DIRICHLET_FROM_DATABASE_H
164#ifndef DOXYGEN_SHOULD_SKIP_THIS
174 double _internal_weight_;
A dirichlet priori: computes its N'_ijk from a database.
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
The class representing a tabular database as used by learning tasks.
DirichletPriorFromDatabase & operator=(const DirichletPriorFromDatabase &from)
copy operator
void setWeight(double weight) final
sets the weight of the a prior(kind of effective sample size)
void addConditioningPseudoCount(const IdCondSet &idset, std::vector< double > &counts) final
adds the prior to a counting vectordefined over the right hand side of the idset
virtual void addJointPseudoCount(const IdCondSet &idset, std::vector< double > &counts) final
adds the prior to a counting vector corresponding to the idset
PriorType getType() const final
returns the type of the prior
virtual DirichletPriorFromDatabase * clone() const
virtual copy constructor
DirichletPriorFromDatabase(const DirichletPriorFromDatabase &from)
copy constructor
DirichletPriorFromDatabase(const DatabaseTable &learning_db, const DBRowGeneratorParser &prior_parser, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
bool isInformative() const final
indicates whether the prior is tensorly informative
DirichletPriorFromDatabase & operator=(DirichletPriorFromDatabase &&from)
move operator
DirichletPriorFromDatabase(DirichletPriorFromDatabase &&from) noexcept
move constructor
virtual ~DirichletPriorFromDatabase()
destructor
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set.
Prior(const DatabaseTable &database, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
double weight() const
returns the weight assigned to the prior
The class that computes counting of observations from the database.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the base class for all a priori
The class that computes counting of observations from the database.