From 72daca0a1efd7075465a0882f014c9e8a715621c Mon Sep 17 00:00:00 2001 From: vbcwonderland Date: Tue, 9 Jul 2024 07:29:35 -0400 Subject: [PATCH] Update LocalGraph Confusion matrix calculation --- .../algcomparison/statistic/utils/LocalGraphConfusion.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tetrad-lib/src/main/java/edu/cmu/tetrad/algcomparison/statistic/utils/LocalGraphConfusion.java b/tetrad-lib/src/main/java/edu/cmu/tetrad/algcomparison/statistic/utils/LocalGraphConfusion.java index e7eab67d0c..4e45ff610b 100644 --- a/tetrad-lib/src/main/java/edu/cmu/tetrad/algcomparison/statistic/utils/LocalGraphConfusion.java +++ b/tetrad-lib/src/main/java/edu/cmu/tetrad/algcomparison/statistic/utils/LocalGraphConfusion.java @@ -95,7 +95,7 @@ public LocalGraphConfusion(Graph trueGraph, Graph estGraph) { * Est | -------------------------- * <- | FP, FN TP / * | -------------------------- - * -- | FN FN / + * -- | 0 0 / (0 means unknown, do nothing) * | -------------------------- * ...| / / / * ----------------------------- @@ -145,7 +145,7 @@ public LocalGraphConfusion(Graph trueGraph, Graph estGraph) { // this.fp++; this.fn++; } else if (ep1Est == Endpoint.TAIL && ep2Est == Endpoint.TAIL) { // Est: -- - this.fn++; + // -- means Unknown, do nothing } } else if (ep1True == Endpoint.ARROW && ep2True == Endpoint.TAIL) { // True: <- if (ep1Est == Endpoint.TAIL && ep2Est == Endpoint.ARROW) { // Est: -> @@ -154,7 +154,7 @@ public LocalGraphConfusion(Graph trueGraph, Graph estGraph) { } else if (ep1Est == Endpoint.ARROW && ep2Est == Endpoint.TAIL) { // Est: <- this.tp++; } else if (ep1Est == Endpoint.TAIL && ep2Est == Endpoint.TAIL) { // Est: -- - this.fn++; + // -- means Unknown, do nothing } } }