51#ifndef DOXYGEN_SHOULD_SKIP_THIS
88 INLINE
const std::vector< std::pair< std::size_t, std::size_t > >&
99 INLINE std::pair< std::vector< double >,
double >
bool isGumNumberOfThreadsOverriden() const override
indicates whether the class containing this ThreadNumberManager set its own number of threads
Size getNumberOfThreads() const override
returns the current max number of threads used by the class containing this ThreadNumberManager
The class representing a tabular database as used by learning tasks.
RecordCounter counter_
the record counter used to parse the database
virtual void setMinNbRowsPerThread(const std::size_t nb) const
changes the number min of rows a thread should process in a multithreading context
const Bijection< NodeId, std::size_t > & nodeId2Columns() const
returns the mapping from ids to column positions in the database
bool isGumNumberOfThreadsOverriden() const override
indicates whether the user set herself the number of threads
const std::vector< NodeId > empty_nodevect_
an empty vector of nodes, used for empty conditioning
Size getNumberOfThreads() const override
returns the current max number of threads of the scheduler
virtual void clear()
clears all the data structures from memory
std::pair< std::vector< double >, double > parametersAndLogLikelihood(const NodeId target_node)
returns the parameters of a CPT as well as its log-likelihood
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
std::vector< double > parameters(const NodeId target_node)
returns the CPT's parameters corresponding to a given target node
void setNumberOfThreads(Size nb) override
sets the number max of threads that can be used
const DatabaseTable & database() const
returns the database on which we perform the counts
virtual std::size_t minNbRowsPerThread() const
returns the minimum of rows that each thread should process
std::size_t minNbRowsPerThread() const
returns the minimum of rows that each thread should process
const std::vector< std::pair< std::size_t, std::size_t > > & ranges() const
returns the current ranges
const DatabaseTable & database() const
returns the database on which we perform the counts
void clear()
clears all the last database-parsed counting from memory
const Bijection< NodeId, std::size_t > & nodeId2Columns() const
returns the mapping from ids to column positions in the database
void setMinNbRowsPerThread(const std::size_t nb) const
changes the number min of rows a thread should process in a multithreading context
void setNumberOfThreads(Size nb) override
sets the number max of threads that can be used
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size NodeId
Type for node ids.
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
the base class for estimating parameters of CPTs