Class DegenerateGaussianScore
- All Implemented Interfaces:
- Score
This implements the degenerate Gaussian BIC score for FGES. The degenerate Gaussian score replaces each discrete variable in the data with a list of 0/1 continuous indicator columns for each of the categories but one (the last one implied). This data, now all continuous, is given to the SEM BIC score and methods used to help determine conditional independence for the mixed continuous/discrete case from this information. The references is as follows:
Andrews, B., Ramsey, J., invalid input: '&' Cooper, G. F. (2019, July). Learning high-dimensional directed acyclic graphs with mixed data-types. In The 2019 ACM SIGKDD Workshop on Causal Discovery (pp. 4-21). PMLR.
As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.
- Author:
- Bryan Andrews
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) intdoubleintThe sample size of the data.doubleThe variables of the score.booleanisEffectEdge(double bump) doublelocalScore(int i, int... parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM model.doublelocalScoreDiff(int x, int y, int[] z) voidsetPenaltyDiscount(double penaltyDiscount) voidsetStructurePrior(double structurePrior) toString()A string representation of the score.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.score.Scoreappend, getVariable, localScore, localScore, localScoreDiff
- 
Constructor Details- 
DegenerateGaussianScore
 
- 
- 
Method Details- 
localScorepublic double localScore(int i, int... parents) Calculates the sample likelihood and BIC score for i given its parents in a simple SEM model. s- Specified by:
- localScorein interface- Score
- Parameters:
- i- The child indes.
- parents- The indices of the parents.
- Returns:
- The score.
 
- 
localScoreDiffpublic double localScoreDiff(int x, int y, int[] z) - Specified by:
- localScoreDiffin interface- Score
 
- 
getVariablesDescription copied from interface:ScoreThe variables of the score.- Specified by:
- getVariablesin interface- Score
- Returns:
- This list.
 
- 
isEffectEdgepublic boolean isEffectEdge(double bump) - Specified by:
- isEffectEdgein interface- Score
 
- 
getSampleSizepublic int getSampleSize()Description copied from interface:ScoreThe sample size of the data.- Specified by:
- getSampleSizein interface- Score
- Returns:
- This size.
 
- 
getMaxDegreepublic int getMaxDegree()- Specified by:
- getMaxDegreein interface- Score
 
- 
determines- Specified by:
- determinesin interface- Score
 
- 
toStringDescription copied from interface:ScoreA string representation of the score.
- 
getPenaltyDiscountpublic double getPenaltyDiscount()
- 
setPenaltyDiscountpublic void setPenaltyDiscount(double penaltyDiscount) 
- 
getStructurePriorpublic double getStructurePrior()
- 
setStructurePriorpublic void setStructurePrior(double structurePrior) 
 
-