51#ifndef GUM_LEARNING_SCORE_K2_H
52#define GUM_LEARNING_SCORE_K2_H
108 const std::vector< std::pair< std::size_t, std::size_t > >&
ranges,
212#ifndef DOXYGEN_SHOULD_SKIP_THIS
the internal prior for the K2 score = Laplace Prior
The class for computing Log2 (Gamma(x)).
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set.
the internal prior for the K2 score = Laplace Prior
the base class for all a priori
virtual std::string isPriorCompatible() const final
indicates whether the prior is compatible (meaningful) with the score
ScoreK2(const ScoreK2 &from)
copy constructor
ScoreK2(const DBRowGeneratorParser &parser, const Prior &prior, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
ScoreK2 & operator=(ScoreK2 &&from)
move operator
ScoreK2(const DBRowGeneratorParser &parser, const Prior &prior, const std::vector< std::pair< std::size_t, std::size_t > > &ranges, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
ScoreK2(ScoreK2 &&from)
move constructor
virtual const Prior & internalPrior() const final
returns the internal prior of the score
virtual double score_(const IdCondSet &idset) final
returns the score for a given IdCondSet
ScoreK2 & operator=(const ScoreK2 &from)
copy operator
virtual ~ScoreK2()
destructor
virtual ScoreK2 * clone() const
virtual copy constructor
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
Score(const DBRowGeneratorParser &parser, const Prior &external_prior, const std::vector< std::pair< std::size_t, std::size_t > > &ranges, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
The class for computing Log2 (Gamma(x)).
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the class for computing K2 scores
the base class for all the scores used for learning (BIC, BDeu, etc)