27 #ifndef GUM_LEARNING_K_NML_H 28 #define GUM_LEARNING_K_NML_H 46 template <
template <
typename >
class ALLOC = std::allocator >
82 const std::vector< std::pair< std::size_t, std::size_t >,
83 ALLOC< std::pair< std::size_t, std::size_t > > >&
198 virtual void clear();
204 virtual void useCache(
const bool on_off);
229 #ifndef DOXYGEN_SHOULD_SKIP_THIS
the base class for all the independence tests used for learning
The base class for all the independence tests used for learning.
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
ALLOC< NodeId > allocator_type
type for the allocators passed in arguments of methods
A class for storing a pair of sets of NodeIds, the second one corresponding to a conditional set...
the base class for all a priori
const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > & ranges() const
returns the current ranges
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 ...
virtual void clear()
clears all the data structures from memory, including the C_n^r cache
virtual ~KNML()
destructor
virtual double _score(const IdSet< ALLOC > &idset) final
returns the score for a given IdSet
Set of pairs of elements with fast search for both elements.
virtual void clearCache()
clears the current C_n^r cache
the class for computing the log2 of the parametric complexity of an r-ary multinomial variableThis cl...
KNML< ALLOC > & operator=(const KNML< ALLOC > &from)
copy operator
the class for computing the NML penalty used by 3off2
virtual void useCache(const bool on_off)
turn on/off the use of the C_n^r cache
virtual KNML< ALLOC > * clone() const
virtual copy constructor
the class used to read a row in the database and to transform it into a set of DBRow instances that c...
Size NodeId
Type for node ids.
KNML(const DBRowGeneratorParser< ALLOC > &parser, const Apriori< ALLOC > &apriori, const std::vector< std::pair< std::size_t, std::size_t >, ALLOC< std::pair< std::size_t, std::size_t > > > &ranges, const Bijection< NodeId, std::size_t, ALLOC< std::size_t > > &nodeId2columns=Bijection< NodeId, std::size_t, ALLOC< std::size_t > >(), const allocator_type &alloc=allocator_type())
default constructor
The class for the NML penalty used in 3off2.