25 #ifndef GUM_LEARNING_K2_H 26 #define GUM_LEARNING_K2_H 90 void setOrder(
const std::vector< NodeId >& order);
102 template <
typename GRAPH_CHANGES_
SELECTOR >
107 template <
typename GUM_SCALAR,
108 typename GRAPH_CHANGES_SELECTOR,
109 typename PARAM_ESTIMATOR >
111 PARAM_ESTIMATOR& estimator,
130 #ifndef GUM_NO_INLINE Class representing a Bayesian Network.
ApproximationScheme & approximationScheme()
returns the approximation policy of the learning algorithm
Header file of gum::Sequence, a class for storing (ordered) sequences of objects. ...
void setOrder(const Sequence< NodeId > &order)
sets the order on the variables
Class representing Bayesian networks.
gum is the global namespace for all aGrUM entities
const Sequence< NodeId > & order() const noexcept
returns the current order
The greedy hill climbing learning algorithm (for directed graphs)
K2 & operator=(const K2 &from)
copy operator
DAG learnStructure(GRAPH_CHANGES_SELECTOR &selector, DAG initial_dag=DAG())
learns the structure of a Bayes net
void __checkOrder(const std::vector< Size > &modal)
checks that the order passed to K2 is coherent with the variables as specified by their modalities ...
The greedy hill learning algorithm (for directed graphs)
Base classes for directed acyclic graphs.
Sequence< NodeId > __order
the order on the variable used for learning
BayesNet< GUM_SCALAR > learnBN(GRAPH_CHANGES_SELECTOR &selector, PARAM_ESTIMATOR &estimator, DAG initial_dag=DAG())
learns the structure and the parameters of a BN