30 #ifndef GUM_LEARNING_STRUCTURAL_COMPARATOR_H 31 #define GUM_LEARNING_STRUCTURAL_COMPARATOR_H 33 #include <agrum/BN/BayesNet.h> 34 #include <agrum/tools/graphs/diGraph.h> 35 #include <agrum/tools/graphs/mixedGraph.h> 36 #include <agrum/tools/graphs/undiGraph.h> 66 void compare(
const DiGraph& ref,
const DiGraph& test);
68 void compare(
const UndiGraph& ref,
const UndiGraph& test);
70 void compare(
const MixedGraph& ref,
const MixedGraph& test);
72 template <
typename GS1,
typename GS2 >
73 void compare(
const BayesNet< GS1 >& ref,
const BayesNet< GS2 >& test);
75 template <
typename GUM_SCALAR >
76 void compare(
const BayesNet< GUM_SCALAR >& ref,
const MixedGraph& test);
78 template <
typename GUM_SCALAR >
79 void compare(
const MixedGraph& ref,
const BayesNet< GUM_SCALAR >& test);
120 #include <agrum/BN/algorithms/structuralComparator_tpl.h> double f_score_skeleton() const
compare two DiGraphs
void compare(const MixedGraph &ref, const MixedGraph &test)
compare two MixedGraphs
double recall_skeleton() const
compare two DiGraphs
INLINE void emplace(Args &&... args)
double f_score() const
compare two DiGraphs
double precision() const
Measures for the graphs.
double recall() const
compare two DiGraphs
void compare(const MixedGraph &ref, const BayesNet< GUM_SCALAR > &test)
compare the essential graph of a BN with a reference MixedGraph
A class for comparing graphs based on their structures.
StructuralComparator()
default constructor
double precision_skeleton() const
Measures for the skeleton, aka graph without orientations.
void compare(const BayesNet< GS1 > &ref, const BayesNet< GS2 > &test)
compare two BNs based on their DAG
~StructuralComparator()
destructor
double _true_edge_
Confusion matrix.