Class CdnodBoss
- All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, AcceptsKnowledge, HasParameters, TakesIndependenceWrapper, TakesScoreWrapper, TetradSerializable, Serializable
CdnodBoss): a BOSS backbone with
constraint-based collider orientation applied only to unshielded triples
that BOSS leaves fully undirected, followed by Meek closure.
Context variables are the Tier-0 variables of the supplied
Knowledge; the search forbids edges into contexts during the BOSS
run and forces Context → X for adjacent non-context variables. The
constraint-based step requires both a ScoreWrapper (for the BOSS
backbone) and an IndependenceWrapper (for sepset derivation), so
this wrapper takes both. A tabular DataSet is required; covariance
matrices alone are not sufficient for the CI step in general.
Non-standard parameter keys (string keys for now; promote to
Params when the algorithm stabilizes):
CDNOD_COLLIDER_STYLE: 1 = SEPSETS, 2 = CONSERVATIVE, 3 = MAX_P (default 1).CDNOD_MAX_P_MARGIN: tie-guard margin for MAX_P (default 0.0).CDNOD_EXCLUDE_CONTEXTS_FROM_S: if true, contexts are excluded from conditioning sets in the collider step, uniformly (default false, per Huang et al. 2020).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameter key selecting the collider orientation style for triples BOSS leaves unresolved: 1 = SEPSETS, 2 = CONSERVATIVE, 3 = MAX_P.static final StringParameter key: if true, context variables are excluded from conditioning sets in the collider-orientation step, uniformly across styles (including RecursiveBlocking hints).static final StringParameter key for the MAX_P tie-guard margin. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CdnodBoss(ScoreWrapper score) Constructs the wrapper with a score wrapper for the BOSS backbone.CdnodBoss(ScoreWrapper score, IndependenceWrapper test) Constructs the wrapper with both a score wrapper (for the BOSS backbone) and an independence wrapper (for the collider-orientation step). -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns that graph that the result should be compared to.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Returns the independence wrapper.Returns a knowledge object.Returns the list of parameter names that are used.Returns the score wrapper.voidSets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets a knowledge object.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper.Methods inherited from class AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReturnsBootstrapGraphs
getBootstrapGraphs
-
Field Details
-
CDNOD_COLLIDER_STYLE
Parameter key selecting the collider orientation style for triples BOSS leaves unresolved: 1 = SEPSETS, 2 = CONSERVATIVE, 3 = MAX_P. Default 1.- See Also:
-
CDNOD_MAX_P_MARGIN
Parameter key for the MAX_P tie-guard margin. Default 0.0 (classic MAX-P).- See Also:
-
CDNOD_EXCLUDE_CONTEXTS_FROM_S
Parameter key: if true, context variables are excluded from conditioning sets in the collider-orientation step, uniformly across styles (including RecursiveBlocking hints). Default false (contexts admissible, per Huang et al. 2020).- See Also:
-
-
Constructor Details
-
CdnodBoss
public CdnodBoss()Default constructor. Score and test wrappers must be supplied before use. -
CdnodBoss
Constructs the wrapper with a score wrapper for the BOSS backbone.- Parameters:
score- the score wrapper.
-
CdnodBoss
Constructs the wrapper with both a score wrapper (for the BOSS backbone) and an independence wrapper (for the collider-orientation step).- Parameters:
score- the score wrapper.test- the independence wrapper.
-
-
Method Details
-
getComparisonGraph
Returns that graph that the result should be compared to.Compares against the CPDAG of the true DAG. Note this is slightly conservative for CD-NOD: the algorithm additionally orients Context → X edges that a plain CPDAG may leave undirected, so those orientations are not credited by this comparison graph.
- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Description copied from interface:AlgorithmReturns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- This description.
-
getDataType
Description copied from interface:AlgorithmReturns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- This type.
-
getParameters
Description copied from interface:HasParametersReturns the list of parameter names that are used. These are looked up in ParamMap, so if they're not- Specified by:
getParametersin interfaceHasParameters- Returns:
- Returns the list of parameter names that are used. These are looked up in ParamMap, so if they're not already defined they'll need to be defined there.
-
getScoreWrapper
Description copied from interface:TakesScoreWrapperReturns the score wrapper.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- the score wrapper.
-
setScoreWrapper
Description copied from interface:TakesScoreWrapperSets the score wrapper.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- the score wrapper.
-
getIndependenceWrapper
Description copied from interface:TakesIndependenceWrapperReturns the independence wrapper.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- the independence wrapper.
-
setIndependenceWrapper
Description copied from interface:TakesIndependenceWrapperSets the independence wrapper.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-
getKnowledge
Description copied from interface:AcceptsKnowledgeReturns a knowledge object.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- a knowledge object.
-
setKnowledge
Description copied from interface:AcceptsKnowledgeSets a knowledge object.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- a knowledge object.
-