49#ifndef GUM_LEARNING_K_NML_H
50#define GUM_LEARNING_K_NML_H
97 const std::vector< std::pair< std::size_t, std::size_t > >&
ranges,
227#ifndef DOXYGEN_SHOULD_SKIP_THIS
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable
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.
virtual void setMinNbRowsPerThread(const std::size_t nb) const
changes the number min of rows a thread should process in a multithreading context
IndependenceTest(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
void setRanges(const std::vector< std::pair< std::size_t, std::size_t > > &new_ranges)
sets new ranges to perform the counts used by the independence test
double score(const NodeId var1, const NodeId var2)
returns the score of a pair of nodes
virtual std::size_t minNbRowsPerThread() const
returns the minimum of rows that each thread should process
virtual Size getNumberOfThreads() const
returns the current max number of threads of the scheduler
void clearRanges()
reset the ranges to the one range corresponding to the whole database
virtual void setNumberOfThreads(Size nb)
sets the number max of threads that can be used
const DatabaseTable & database() const
return the database used by the score
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
virtual bool isGumNumberOfThreadsOverriden() const
indicates whether the user set herself the number of threads
const Bijection< NodeId, std::size_t > & nodeId2Columns() const
return the mapping between the columns of the database and the node ids
KNML & operator=(KNML &&from)
move operator
KNML(const DBRowGeneratorParser &parser, const Prior &prior, const Bijection< NodeId, std::size_t > &nodeId2columns=Bijection< NodeId, std::size_t >())
default constructor
virtual ~KNML()
destructor
KNML & operator=(const KNML &from)
copy operator
KNML(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
virtual double score_(const IdCondSet &idset) final
returns the score for a given IdCondSet
KNML(const KNML &from)
copy constructor
virtual void clear()
clears all the data structures from memory, including the C_n^r cache
virtual KNML * clone() const
virtual copy constructor
virtual void useCache(const bool on_off)
turn on/off the use of the C_n^r cache
KNML(KNML &&from)
move constructor
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
virtual void clearCache()
clears the current C_n^r cache
the base class for all a priori
the base class for all the independence tests used for learning
The class for the NML penalty used in MIIC.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the class for computing the log2 of the parametric complexity of an r-ary multinomial variable