-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into 6.3.1
- Loading branch information
Showing
58 changed files
with
2,124 additions
and
1,106 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
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 |
---|---|---|
|
@@ -27,10 +27,7 @@ | |
import edu.cmu.tetrad.algcomparison.algorithm.cluster.Ftfc; | ||
import edu.cmu.tetrad.algcomparison.algorithm.continuous.dag.Lingam; | ||
import edu.cmu.tetrad.algcomparison.algorithm.mixed.Mgm; | ||
import edu.cmu.tetrad.algcomparison.algorithm.multi.FangConcatenated; | ||
import edu.cmu.tetrad.algcomparison.algorithm.multi.ImagesBDeu; | ||
import edu.cmu.tetrad.algcomparison.algorithm.multi.ImagesCcd; | ||
import edu.cmu.tetrad.algcomparison.algorithm.multi.ImagesSemBic; | ||
import edu.cmu.tetrad.algcomparison.algorithm.multi.*; | ||
import edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.*; | ||
import edu.cmu.tetrad.algcomparison.algorithm.oracle.pattern.*; | ||
import edu.cmu.tetrad.algcomparison.algorithm.other.Glasso; | ||
|
@@ -99,7 +96,6 @@ | |
* | ||
* @author Joseph Ramsey | ||
* @author Chirayu Kong Wongchokprasitti, PhD ([email protected]) | ||
* | ||
*/ | ||
public class GeneralAlgorithmEditor extends JPanel implements FinalizingEditor { | ||
|
||
|
@@ -195,16 +191,17 @@ public GeneralAlgorithmEditor(final GeneralAlgorithmRunner runner) { | |
descriptions.add(new AlgorithmDescription(AlgName.CPCStable, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.PcMax, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.FGES, AlgType.forbid_latent_common_causes, OracleType.Score)); | ||
descriptions.add(new AlgorithmDescription(AlgName.IMaGES_BDeu, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.IMaGES_SEM_BIC, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.IMaGES_CCD, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.CCD, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.CCD_MAX, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.IMaGES_Discrete, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.IMaGES_Continuous, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.IMaGES_CCD, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.CCD, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.CCD_MAX, AlgType.forbid_latent_common_causes, OracleType.Test)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.FANG, AlgType.forbid_latent_common_causes, OracleType.None)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.EFANG , AlgType.forbid_latent_common_causes, OracleType.None)); | ||
|
||
descriptions.add(new AlgorithmDescription(AlgName.FCI, AlgType.allow_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.RFCI, AlgType.allow_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.CFCI, AlgType.allow_latent_common_causes, OracleType.Test)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.CFCI, AlgType.allow_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.GFCI, AlgType.allow_latent_common_causes, OracleType.Both)); | ||
descriptions.add(new AlgorithmDescription(AlgName.TsFCI, AlgType.allow_latent_common_causes, OracleType.Test)); | ||
descriptions.add(new AlgorithmDescription(AlgName.TsGFCI, AlgType.allow_latent_common_causes, OracleType.Both)); | ||
|
@@ -231,7 +228,7 @@ public GeneralAlgorithmEditor(final GeneralAlgorithmRunner runner) { | |
descriptions.add(new AlgorithmDescription(AlgName.RSkewE, AlgType.orient_pairwise, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.Skew, AlgType.orient_pairwise, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.SkewE, AlgType.orient_pairwise, OracleType.None)); | ||
descriptions.add(new AlgorithmDescription(AlgName.Tahn, AlgType.orient_pairwise, OracleType.None)); | ||
// descriptions.add(new AlgorithmDescription(AlgName.Tahn, AlgType.orient_pairwise, OracleType.None)); | ||
|
||
mappedDescriptions = new HashMap<>(); | ||
|
||
|
@@ -516,6 +513,7 @@ public void watch() { | |
} | ||
|
||
if (hpcAccount == null) { | ||
graphEditor.saveLayout(); | ||
runner.execute(); | ||
graphEditor.replace(runner.getGraphs()); | ||
graphEditor.validate(); | ||
|
@@ -984,6 +982,9 @@ private Algorithm getAlgorithm(AlgName name, IndependenceWrapper independenceWra | |
case FANG: | ||
algorithm = new FangConcatenated(); | ||
break; | ||
case EFANG: | ||
algorithm = new EFangConcatenated(); | ||
break; | ||
case FAS: | ||
algorithm = new FAS(independenceWrapper); | ||
break; | ||
|
@@ -1010,10 +1011,10 @@ private Algorithm getAlgorithm(AlgName name, IndependenceWrapper independenceWra | |
case MGM: | ||
algorithm = new Mgm(); | ||
break; | ||
case IMaGES_BDeu: | ||
case IMaGES_Discrete: | ||
algorithm = new ImagesBDeu(); | ||
break; | ||
case IMaGES_SEM_BIC: | ||
case IMaGES_Continuous: | ||
algorithm = new ImagesSemBic(); | ||
break; | ||
case IMaGES_CCD: | ||
|
@@ -1406,10 +1407,10 @@ private enum AlgName { | |
FgesMb, MBFS, Wfges, JCPC, /*FgesMeasurement,*/ | ||
FCI, RFCI, CFCI, GFCI, TsFCI, TsGFCI, TsImages, CCD, CCD_MAX, | ||
LiNGAM, MGM, | ||
IMaGES_BDeu, IMaGES_SEM_BIC, IMaGES_CCD, | ||
IMaGES_Discrete, IMaGES_Continuous, IMaGES_CCD, | ||
Bpc, Fofc, Ftfc, | ||
GLASSO, | ||
EB, R1, R2, R3, R4, RSkew, RSkewE, Skew, SkewE, FANG, Tahn | ||
EB, R1, R2, R3, R4, RSkew, RSkewE, Skew, SkewE, FANG, EFANG, Tahn | ||
} | ||
|
||
private enum OracleType {None, Test, Score, Both} | ||
|
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
Oops, something went wrong.