EdgeScores#
- class causalbase.metrics.EdgeScores(precision, recall, f1, precision_skel, recall_skel, f1_skel)[source]#
Precision/recall/F1 of an estimated DAG’s edges against the truth.
- Attributes:
- precisionfloat
Fraction of directed edges in the estimate that are correct (exact direction match against the true DAG).
- recallfloat
Fraction of the true DAG’s directed edges recovered (exact direction match) by the estimate.
- f1float
Harmonic mean of precision and recall.
- precision_skelfloat
Fraction of adjacent pairs in the estimate’s skeleton that are adjacent (in either direction) in the true DAG’s skeleton.
- recall_skelfloat
Fraction of the true DAG’s skeleton pairs recovered (adjacency only, direction ignored) by the estimate.
- f1_skelfloat
Harmonic mean of precision_skel and recall_skel.