28 #ifndef GUM_LEARNING_DAG_2_BN_LEARNER_H 29 #define GUM_LEARNING_DAG_2_BN_LEARNER_H 33 #include <agrum/agrum.h> 34 #include <agrum/tools/core/approximations/approximationScheme.h> 35 #include <agrum/tools/core/approximations/approximationSchemeListener.h> 36 #include <agrum/BN/BayesNet.h> 37 #include <agrum/tools/graphs/DAG.h> 38 #include <agrum/BN/learning/paramUtils/paramEstimator.h> 50 template <
template <
typename >
class ALLOC = std::allocator >
68 DAG2BNLearner(
const DAG2BNLearner< ALLOC >& from,
const allocator_type& alloc);
74 DAG2BNLearner(DAG2BNLearner< ALLOC >&& from,
const allocator_type& alloc);
109 template <
typename GUM_SCALAR =
double >
117 template <
typename GUM_SCALAR =
double >
130 #ifndef DOXYGEN_SHOULD_SKIP_THIS 136 template <
typename GUM_SCALAR =
double >
137 static void _probaVarReordering_(gum::Potential< GUM_SCALAR >& pot,
138 const gum::Potential< GUM_SCALAR >& other_pot);
148 #include <agrum/BN/learning/paramUtils/DAG2BNLearner_tpl.h> DAG2BNLearner< ALLOC > & operator=(DAG2BNLearner< ALLOC > &&from)
move operator
static BayesNet< GUM_SCALAR > createBN(ParamEstimator< ALLOC > &estimator, const DAG &dag)
create a BN from a DAG using a one pass generator (typically ML)
INLINE void emplace(Args &&... args)
DAG2BNLearner(DAG2BNLearner< ALLOC > &&from)
move constructor
BayesNet< GUM_SCALAR > createBN(ParamEstimator< ALLOC > &bootstrap_estimator, ParamEstimator< ALLOC > &general_estimator, const DAG &dag)
create a BN from a DAG using a two pass generator (typically EM)
virtual ~DAG2BNLearner()
destructor
allocator_type getAllocator() const
returns the allocator used by the score
DAG2BNLearner(const DAG2BNLearner< ALLOC > &from, const allocator_type &alloc)
copy constructor with a given allocator
DAG2BNLearner(const DAG2BNLearner< ALLOC > &from)
copy constructor
DAG2BNLearner< ALLOC > & operator=(const DAG2BNLearner< ALLOC > &from)
copy operator
ApproximationScheme & approximationScheme()
returns the approximation policy of the learning algorithm
DAG2BNLearner(DAG2BNLearner< ALLOC > &&from, const allocator_type &alloc)
move constructor with a given allocator
virtual DAG2BNLearner< ALLOC > * clone(const allocator_type &alloc) const
virtual copy constructor with a given allocator
virtual DAG2BNLearner< ALLOC > * clone() const
virtual copy constructor
A class that, given a structure and a parameter estimator returns a full Bayes net.
Database(const std::string &filename, const BayesNet< GUM_SCALAR > &bn, const std::vector< std::string > &missing_symbols)