25 #ifndef GUM_LEARNING_DBROW_GENERATOR_EM_H 26 #define GUM_LEARNING_DBROW_GENERATOR_EM_H 76 template <
typename GUM_SCALAR =
double,
77 template <
typename >
class ALLOC = std::allocator >
168 #ifndef DOXYGEN_SHOULD_SKIP_THIS 175 std::vector< std::size_t, ALLOC< std::size_t > > __missing_cols;
178 std::size_t __nb_miss;
199 bool __use_filled_row1{
true};
202 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.
A DBRowGenerator class that returns incomplete rows as EM would do.
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
Base class for DBRowGenerator classes that use a BN for computing their outputs.
A DBRowGenerator class that returns incomplete rows as EM would do.
Class representing Bayesian networks.
gum is the global namespace for all aGrUM entities
The union class for storing the translated values in learning databases.
Implementation of a variable elimination algorithm for inference in Bayesian Networks.
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.
Set of pairs of elements with fast search for both elements.
allocator_type getAllocator() const
returns the allocator used
ALLOC< DBTranslatedValue > allocator_type
type for the allocators passed in arguments of methods