-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from bd2kccd/development
Update to Tetrad 7.1.3-1
- Loading branch information
Showing
6 changed files
with
125 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
src/test/java/edu/pitt/dbmi/causal/cmd/CausalCmdApplicationBootstrappingTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright (C) 2019 University of Pittsburgh. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
* MA 02110-1301 USA | ||
*/ | ||
package edu.pitt.dbmi.causal.cmd; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Path; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.io.TempDir; | ||
|
||
/** | ||
* | ||
* Jan 13, 2023 12:16:29 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
*/ | ||
public class CausalCmdApplicationBootstrappingTest { | ||
|
||
@TempDir | ||
public static Path tempDir; | ||
|
||
@Test | ||
public void testFgesBootstrappingWithContinuousData() throws IOException { | ||
String dataset = TestFiles.CONTINUOUS_DATA; | ||
String dirOut = TestFiles.createSubDir(tempDir, "fges_bootstrapping").toString(); | ||
String[] args = { | ||
"--dataset", dataset, | ||
"--delimiter", "tab", | ||
"--data-type", "continuous", | ||
"--algorithm", "fges", | ||
"--score", "ebic-score", | ||
"--default", | ||
"--prefix", "fges-bootstrapping", | ||
"--numberResampling", "10", | ||
"--percentResampleSize", "100", | ||
"--seed", "1673588774198", | ||
"--out", dirOut | ||
}; | ||
CausalCmdApplication.main(args); | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
src/test/java/edu/pitt/dbmi/causal/cmd/CausalCmdApplicationExperimentalTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (C) 2019 University of Pittsburgh. | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
* MA 02110-1301 USA | ||
*/ | ||
package edu.pitt.dbmi.causal.cmd; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Path; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.io.TempDir; | ||
|
||
/** | ||
* | ||
* Jan 21, 2023 9:52:10 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
*/ | ||
public class CausalCmdApplicationExperimentalTest { | ||
|
||
@TempDir | ||
public static Path tempDir; | ||
|
||
@Test | ||
public void testBossWithContinuousData() throws IOException { | ||
String dataset = TestFiles.CONTINUOUS_DATA; | ||
String dirOut = TestFiles.createSubDir(tempDir, "boss_experimental").toString(); | ||
String[] args = { | ||
"--dataset", dataset, | ||
"--delimiter", "tab", | ||
"--data-type", "continuous", | ||
"--experimental", | ||
"--algorithm", "boss", | ||
"--score", "ebic-score", | ||
"--test", "fisher-z-test", | ||
"--default", | ||
"--prefix", "boss-experimental", | ||
"--out", dirOut | ||
}; | ||
CausalCmdApplication.main(args); | ||
} | ||
|
||
} |