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 } } }