aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
gum::StructuralComparator Class Reference

A class for comparing graphs based on their structures. More...

#include <structuralComparator.h>

+ Collaboration diagram for gum::StructuralComparator:

Public Member Functions

Constructors / Destructors
 StructuralComparator ()
 default constructor More...
 
 ~StructuralComparator ()
 destructor More...
 
Accessors
void compare (const DiGraph &ref, const DiGraph &test)
 compare two DiGraphs More...
 
void compare (const UndiGraph &ref, const UndiGraph &test)
 compare two UndiGraphs More...
 
void compare (const MixedGraph &ref, const MixedGraph &test)
 compare two MixedGraphs More...
 
template<typename GS1 , typename GS2 >
void compare (const BayesNet< GS1 > &ref, const BayesNet< GS2 > &test)
 compare two BNs based on their DAG More...
 
template<typename GUM_SCALAR >
void compare (const BayesNet< GUM_SCALAR > &ref, const MixedGraph &test)
 compare a MixedGraph with the essential graph of a reference BN More...
 
template<typename GUM_SCALAR >
void compare (const MixedGraph &ref, const BayesNet< GUM_SCALAR > &test)
 compare the essential graph of a BN with a reference MixedGraph More...
 
double precision_skeleton () const
 Measures for the skeleton, aka graph without orientations. More...
 
double recall_skeleton () const
 compare two DiGraphs More...
 
double f_score_skeleton () const
 compare two DiGraphs More...
 
double precision () const
 Measures for the graphs. More...
 
double recall () const
 compare two DiGraphs More...
 
double f_score () const
 compare two DiGraphs More...
 

Detailed Description

A class for comparing graphs based on their structures.

Definition at line 46 of file structuralComparator.h.

Constructor & Destructor Documentation

◆ StructuralComparator()

gum::StructuralComparator::StructuralComparator ( )

default constructor

◆ ~StructuralComparator()

gum::StructuralComparator::~StructuralComparator ( )

destructor

Member Function Documentation

◆ compare() [1/6]

void gum::StructuralComparator::compare ( const DiGraph ref,
const DiGraph test 
)

compare two DiGraphs

◆ compare() [2/6]

void gum::StructuralComparator::compare ( const UndiGraph ref,
const UndiGraph test 
)

compare two UndiGraphs

◆ compare() [3/6]

void gum::StructuralComparator::compare ( const MixedGraph ref,
const MixedGraph test 
)

compare two MixedGraphs

◆ compare() [4/6]

template<typename GS1 , typename GS2 >
void gum::StructuralComparator::compare ( const BayesNet< GS1 > &  ref,
const BayesNet< GS2 > &  test 
)

compare two BNs based on their DAG

◆ compare() [5/6]

template<typename GUM_SCALAR >
void gum::StructuralComparator::compare ( const BayesNet< GUM_SCALAR > &  ref,
const MixedGraph test 
)

compare a MixedGraph with the essential graph of a reference BN

◆ compare() [6/6]

template<typename GUM_SCALAR >
void gum::StructuralComparator::compare ( const MixedGraph ref,
const BayesNet< GUM_SCALAR > &  test 
)

compare the essential graph of a BN with a reference MixedGraph

◆ f_score()

double gum::StructuralComparator::f_score ( ) const

compare two DiGraphs

◆ f_score_skeleton()

double gum::StructuralComparator::f_score_skeleton ( ) const

compare two DiGraphs

◆ precision()

double gum::StructuralComparator::precision ( ) const

Measures for the graphs.

◆ precision_skeleton()

double gum::StructuralComparator::precision_skeleton ( ) const

Measures for the skeleton, aka graph without orientations.

◆ recall()

double gum::StructuralComparator::recall ( ) const

compare two DiGraphs

◆ recall_skeleton()

double gum::StructuralComparator::recall_skeleton ( ) const

compare two DiGraphs

Member Data Documentation

◆ misoriented_arc__

double gum::StructuralComparator::misoriented_arc__
private

Definition at line 112 of file structuralComparator.h.

◆ true_arc__

double gum::StructuralComparator::true_arc__
private

Definition at line 110 of file structuralComparator.h.

◆ true_edge__

double gum::StructuralComparator::true_edge__
private

Confusion matrix.

Definition at line 110 of file structuralComparator.h.

◆ true_none__

double gum::StructuralComparator::true_none__
private

Definition at line 110 of file structuralComparator.h.

◆ wrong_arc_edge__

double gum::StructuralComparator::wrong_arc_edge__
private

Definition at line 112 of file structuralComparator.h.

◆ wrong_arc_none__

double gum::StructuralComparator::wrong_arc_none__
private

Definition at line 112 of file structuralComparator.h.

◆ wrong_edge_arc__

double gum::StructuralComparator::wrong_edge_arc__
private

Definition at line 111 of file structuralComparator.h.

◆ wrong_edge_none__

double gum::StructuralComparator::wrong_edge_none__
private

Definition at line 111 of file structuralComparator.h.

◆ wrong_none_arc__

double gum::StructuralComparator::wrong_none_arc__
private

Definition at line 113 of file structuralComparator.h.

◆ wrong_none_edge__

double gum::StructuralComparator::wrong_none_edge__
private

Definition at line 113 of file structuralComparator.h.


The documentation for this class was generated from the following file: