Class TrekMimic
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.TrekMimic
- All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, AcceptsKnowledge, HasParameters, TetradSerializable, Serializable
@Algorithm(name="Trek-MIMIC",
command="trek-mimic",
algoType=search_for_structure_over_latents,
dataType=Continuous)
@Bootstrapping
public class TrekMimic
extends AbstractBootstrapAlgorithm
implements Algorithm, AcceptsKnowledge, ReturnsBootstrapGraphs
Algorithm-comparison wrapper for the Trek-MIMIC search.
This wrapper delegates the actual work to
TrekMimic, which now performs the full search
through its search() method.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears any supplied input/output role knowledge.getComparisonGraph(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 currently specified input variable names.Returns a knowledge object.Returns the currently specified output variable names.Returns the list of parameter names that are used.voidsetInputNames(Collection<String> inputNames) Sets the input variable names directly.voidsetInputs(Collection<Node> inputs) Sets the observed variables known to be inputs to the latent structure.voidsetKnowledge(Knowledge knowledge) Sets a knowledge object.voidsetOutputNames(Collection<String> outputNames) Sets the output variable names directly.voidsetOutputs(Collection<Node> outputs) Sets the observed variables known to be outputs from the latent structure.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
-
Constructor Details
-
TrekMimic
public TrekMimic()Constructs the wrapper.
-
-
Method Details
-
getComparisonGraph
Returns that graph that the result should be compared to.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- This type.
-
getParameters
Returns 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.
-
getKnowledge
Returns a knowledge object.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- a knowledge object.
-
setKnowledge
Sets a knowledge object.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- a knowledge object.
-
setInputs
Sets the observed variables known to be inputs to the latent structure.- Parameters:
inputs- the input variables
-
setOutputs
Sets the observed variables known to be outputs from the latent structure.- Parameters:
outputs- the output variables
-
getInputNames
-
setInputNames
Sets the input variable names directly.- Parameters:
inputNames- the input variable names
-
getOutputNames
-
setOutputNames
Sets the output variable names directly.- Parameters:
outputNames- the output variable names
-
clearInputOutputKnowledge
public void clearInputOutputKnowledge()Clears any supplied input/output role knowledge.
-