From 54d2aa66e4d7ba76909577ff82ad69cffe4c787c Mon Sep 17 00:00:00 2001 From: vbcwonderland Date: Fri, 14 Jun 2024 16:27:04 -0400 Subject: [PATCH] Typo fix --- .../main/java/edu/cmu/tetrad/search/MarkovCheck.java | 12 ++++++------ .../java/edu/cmu/tetrad/test/TestCheckMarkov.java | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tetrad-lib/src/main/java/edu/cmu/tetrad/search/MarkovCheck.java b/tetrad-lib/src/main/java/edu/cmu/tetrad/search/MarkovCheck.java index b64b561f11..4830e68342 100644 --- a/tetrad-lib/src/main/java/edu/cmu/tetrad/search/MarkovCheck.java +++ b/tetrad-lib/src/main/java/edu/cmu/tetrad/search/MarkovCheck.java @@ -413,13 +413,13 @@ public List> getAndersonDarlingTestAcceptsRejectsNodesForAllNodesPlot rejects_AdjP_ADTestP.add(Arrays.asList(ap, ADTestPValue)); } if (!Double.isNaN(ar)) { - rejects_AdjR_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + rejects_AdjR_ADTestP.add(Arrays.asList(ar, ADTestPValue)); } if (!Double.isNaN(ahp)) { - rejects_AHP_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + rejects_AHP_ADTestP.add(Arrays.asList(ahp, ADTestPValue)); } if (!Double.isNaN(ahr)) { - rejects_AHR_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + rejects_AHR_ADTestP.add(Arrays.asList(ahr, ADTestPValue)); } } else { accepts.add(x); @@ -427,13 +427,13 @@ public List> getAndersonDarlingTestAcceptsRejectsNodesForAllNodesPlot accepts_AdjP_ADTestP.add(Arrays.asList(ap, ADTestPValue)); } if (!Double.isNaN(ar)) { - accepts_AdjR_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + accepts_AdjR_ADTestP.add(Arrays.asList(ar, ADTestPValue)); } if (!Double.isNaN(ahp)) { - accepts_AHP_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + accepts_AHP_ADTestP.add(Arrays.asList(ahp, ADTestPValue)); } if (!Double.isNaN(ahr)) { - accepts_AHR_ADTestP.add(Arrays.asList(ap, ADTestPValue)); + accepts_AHR_ADTestP.add(Arrays.asList(ahr, ADTestPValue)); } } } diff --git a/tetrad-lib/src/test/java/edu/cmu/tetrad/test/TestCheckMarkov.java b/tetrad-lib/src/test/java/edu/cmu/tetrad/test/TestCheckMarkov.java index 2742a758bf..f86f3387ec 100644 --- a/tetrad-lib/src/test/java/edu/cmu/tetrad/test/TestCheckMarkov.java +++ b/tetrad-lib/src/test/java/edu/cmu/tetrad/test/TestCheckMarkov.java @@ -113,9 +113,8 @@ public void test2() { @Test public void testGaussianDAGPrecisionRecallForLocalOnMarkovBlanket() { -// Graph trueGraph = RandomGraph.randomDag(10, 0, 10, 100, 100, 100, false); // TODO VBC: Also check different dense graph. - Graph trueGraph = RandomGraph.randomDag(20, 0, 40, 100, 100, 100, false); + Graph trueGraph = RandomGraph.randomDag(20, 0, 80, 100, 100, 100, false); System.out.println("Test True Graph: " + trueGraph); System.out.println("Test True Graph size: " + trueGraph.getNodes().size()); @@ -409,7 +408,7 @@ public void testNonGaussianCPDAGPrecisionRecallForLocalOnParents() { @Test public void testGaussianDAGPrecisionRecallForLocalOnMarkovBlanket2() { - Graph trueGraph = RandomGraph.randomDag(10, 0, 10, 100, 100, 100, false); + Graph trueGraph = RandomGraph.randomDag(20, 0, 80, 100, 100, 100, false); System.out.println("Test True Graph: " + trueGraph); System.out.println("Test True Graph size: " + trueGraph.getNodes().size());