28 #ifndef GUM_LEARNING_DBROW_GENERATOR_EM_H 29 #define GUM_LEARNING_DBROW_GENERATOR_EM_H 79 template <
typename GUM_SCALAR =
double,
80 template <
typename >
class ALLOC = std::allocator >
171 #ifndef DOXYGEN_SHOULD_SKIP_THIS 178 std::vector< std::size_t, ALLOC< std::size_t > > __missing_cols;
181 std::size_t __nb_miss;
202 bool __use_filled_row1{
true};
205 double __original_weight;
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods
aGrUM's Potential is a multi-dimensional array with tensor operators.
Class representing a Bayesian Network.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
DBRowGeneratorEM(const std::vector< DBTranslatedValueType, ALLOC< DBTranslatedValueType > > column_types, const BayesNet< GUM_SCALAR > &bn, 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.
A DBRowGenerator class that returns incomplete rows as EM would do.
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 union class for storing the translated values in learning databases.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual DBRowGeneratorEM< GUM_SCALAR, ALLOC > * clone() const override final
virtual copy constructor
DBTranslatedValueType
The nature of the elements handled by translators (discrete, continuous).
Base class for DBRowGenerator classes that use a BN for computing their outputs.
Set of pairs of elements with fast search for both elements.
virtual void setBayesNet(const BayesNet< GUM_SCALAR > &new_bn) override final
assign a new Bayes net to the generator
The class for storing a record in a database.
virtual std::size_t _computeRows(const DBRow< DBTranslatedValue, ALLOC > &row) override final
computes the rows it will provide as output
Class for assigning/browsing values to tuples of discrete variables.
virtual const DBRow< DBTranslatedValue, ALLOC > & generate() override final
generates one ouput DBRow for each DBRow passed to method setInputRow
Size NodeId
Type for node ids.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
allocator_type getAllocator() const
returns the allocator used
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods