Class Sp
- All Implemented Interfaces:
- SuborderSearch
Note that SP considers all permutations of the algorithm, which is exponential in the number of variables. So SP without knowledge is limited to about 10 variables per knowledge tier.
However, notably, tiered Knowledge can be used with this search. If tiered knowledge is used, then the procedure is carried out for each tier separately, given the variable preceding that tier, which allows the SP algorithm to address tiered (e.g., time series) problems with more than 11 variables.
This class is meant to be used in the context of the PermutationSearch class (see). the proper use is PermutationSearch search = new PermutationSearch(new Sp(score));
Raskutti, G., & Uhler, C. (2018). Learning directed acyclic graph models based on sparsest permutations. Stat, 7(1), e183.
This class is configured to respect knowledge of forbidden and required edges, including knowledge of temporal tiers.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionRetrieves a mapping of nodes to their parent nodes.getScore()Retrieves the score associated with this object.Returns the list of variables associated with this object.voidsearchSuborder(List<Node> prefix, List<Node> suborder, Map<Node, GrowShrinkTree> gsts) Searches for the best suborder of nodes given a prefix and a suborder.voidsetKnowledge(Knowledge knowledge) Sets the knowledge associated with this object.
- 
Constructor Details- 
SpThis algorithm will work with an arbitrary score.- Parameters:
- score- The Score to use.
 
 
- 
- 
Method Details- 
searchSuborderSearches for the best suborder of nodes given a prefix and a suborder.- Specified by:
- searchSuborderin interface- SuborderSearch
- Parameters:
- prefix- The prefix of the suborder.
- suborder- The suborder.
- gsts- The GrowShrinkTree being used to do caching of scores.
- See Also:
 
- 
getVariablesReturns the list of variables associated with this object.- Specified by:
- getVariablesin interface- SuborderSearch
- Returns:
- the list of variables.
- See Also:
 
- 
getParentsRetrieves a mapping of nodes to their parent nodes.- Specified by:
- getParentsin interface- SuborderSearch
- Returns:
- the mapping of nodes to their parent nodes.
 
- 
getScoreRetrieves the score associated with this object.- Specified by:
- getScorein interface- SuborderSearch
- Returns:
- the score
- See Also:
 
- 
setKnowledgeSets the knowledge associated with this object.- Specified by:
- setKnowledgein interface- SuborderSearch
- Parameters:
- knowledge- The knowledge to set.
- See Also:
 
 
-