30 #ifndef GUM_LEARNING_K_NML_H 31 #define GUM_LEARNING_K_NML_H 49 template <
template <
typename >
class ALLOC = std::allocator >
85 const std::vector< std::pair< std::size_t, std::size_t >,
86 ALLOC< std::pair< std::size_t, std::size_t > > >&
201 virtual void clear();
207 virtual void useCache(
const bool on_off);
232 #ifndef DOXYGEN_SHOULD_SKIP_THIS Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.