Package edu.cmu.tetrad.search.score
Class GicScores
java.lang.Object
edu.cmu.tetrad.search.score.GicScores
- All Implemented Interfaces:
- Score
Implements scores motivated by the Generalized Information Criterion (GIC) approach as given in Kim et al. (2012).
Kim, Y., Kwon, S., & Choi, H. (2012). Consistent model selection criteria on high dimensions. The Journal of Machine Learning Research, 13(1), 1037-1057.
As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.
- Author:
- josephramsey
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumGives the options for the rules to use for calculating the scores.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs the score using a covariance matrix.GicScores(ICovarianceMatrix covariances) Constructs the score using a covariance matrix.
- 
Method SummaryModifier and TypeMethodDescriptionbooleandetermines(List<Node> z, Node y) Returns true iff the score determines the edge between x and y.Specialized scoring method for a single parent.intReturns the max degree, by default 1000.doubleintThe sample size of the data.The variables of the score.booleanisEffectEdge(double bump) Returns true iff the edge between x and y is an effect edge.booleandoublelocalScore(int i, int... parents) The score of a node given its parents.doublelocalScoreDiff(int x, int y, int[] z) Returns the score difference of the graph.voidsetLambda(double lambda) voidsetPenaltyDiscount(double penaltyDiscount) voidsetRuleType(GicScores.RuleType ruleType) voidsetVariables(List<Node> variables) voidsetVerbose(boolean verbose) 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- 
GicScoresConstructs the score using a covariance matrix.
- 
GicScoresConstructs the score using a covariance matrix.
 
- 
- 
Method Details- 
localScoreDiffpublic double localScoreDiff(int x, int y, int[] z) Description copied from interface:ScoreReturns the score difference of the graph.- Specified by:
- localScoreDiffin interface- Score
- Parameters:
- x- A node.
- y- TAhe node.
- z- A set of nodes.
- Returns:
- The score difference.
 
- 
localScorepublic double localScore(int i, int... parents) Description copied from interface:ScoreThe score of a node given its parents.- Specified by:
- localScorein interface- Score
- Parameters:
- i- The node.
- parents- The parents.
- Returns:
- The score.
 
- 
getCovariancesSpecialized scoring method for a single parent. Used to speed up the effect edges search.
- 
getSampleSizepublic int getSampleSize()Description copied from interface:ScoreThe sample size of the data.- Specified by:
- getSampleSizein interface- Score
- Returns:
- This size.
 
- 
isEffectEdgepublic boolean isEffectEdge(double bump) Description copied from interface:ScoreReturns true iff the edge between x and y is an effect edge.- Specified by:
- isEffectEdgein interface- Score
- Parameters:
- bump- The bump.
- Returns:
- True iff the edge between x and y is an effect edge.
 
- 
getDataSet
- 
isVerbosepublic boolean isVerbose()
- 
setVerbosepublic void setVerbose(boolean verbose) 
- 
getVariablesDescription copied from interface:ScoreThe variables of the score.- Specified by:
- getVariablesin interface- Score
- Returns:
- This list.
 
- 
setVariables
- 
getMaxDegreepublic int getMaxDegree()Description copied from interface:ScoreReturns the max degree, by default 1000.- Specified by:
- getMaxDegreein interface- Score
- Returns:
- The max degree.
 
- 
determinesDescription copied from interface:ScoreReturns true iff the score determines the edge between x and y.- Specified by:
- determinesin interface- Score
- Parameters:
- z- The set of nodes.
- y- The node.
- Returns:
- True iff the score determines the edge between x and y.
 
- 
setRuleType
- 
setLambdapublic void setLambda(double lambda) 
- 
getPenaltyDiscountpublic double getPenaltyDiscount()
- 
setPenaltyDiscountpublic void setPenaltyDiscount(double penaltyDiscount) 
- 
toStringDescription copied from interface:ScoreA string representation of the score.
 
-