Class DMSearch
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.DMSearch
Implements the DM search.
- Version:
- $Id: $Id
- Author:
- Alexander Murray-Watters
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassStructure to hold latent structure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyDmSearch(Graph pattern, Set<String> inputString, double penalty) applyDmSearch.booleangetData()Getter for the fielddata.Getter for the fielddmStructure.intGetter for the fieldgesDepth.int[]Getter for the fieldinputs.intgetMinDepth.int[]Getter for the fieldoutputs.int[]Getter for the fieldtrueInputs.search()search.voidsetAlphaPC(double alpha) Setter for the fieldalphaPC.voidsetAlphaSober(double alpha) Setter for the fieldalphaSober.voidSetter for the fielddata.voidsetDiscount(double discount) setDiscount.voidsetDmStructure(DMSearch.LatentStructure structure) Setter for the fielddmStructure.voidsetGesDepth(int gesDepth) Setter for the fieldgesDepth.voidsetInputs(int[] inputs) Setter for the fieldinputs.voidsetMinDiscount(int minDiscount) Setter for the fieldminDiscount.voidsetOutputs(int[] outputs) Setter for the fieldoutputs.voidsetTrueInputs(int[] trueInputs) Setter for the fieldtrueInputs.voidsetUseFgES(boolean set) setUseFgES.
-
Constructor Details
-
DMSearch
public DMSearch()Constructor for DMSearch.
-
-
Method Details
-
setMinDiscount
public void setMinDiscount(int minDiscount) Setter for the field
minDiscount.- Parameters:
minDiscount- a int
-
getMinDepth
public int getMinDepth()getMinDepth.
- Returns:
- a int
-
getGesDepth
public int getGesDepth()Getter for the field
gesDepth.- Returns:
- a int
-
setGesDepth
public void setGesDepth(int gesDepth) Setter for the field
gesDepth.- Parameters:
gesDepth- a int
-
getTrueInputs
public int[] getTrueInputs()Getter for the field
trueInputs.- Returns:
- an array of objects
-
setTrueInputs
public void setTrueInputs(int[] trueInputs) Setter for the field
trueInputs.- Parameters:
trueInputs- an array of objects
-
getData
Getter for the field
data.- Returns:
- a
DataSetobject
-
setData
Setter for the field
data.- Parameters:
data- aDataSetobject
-
getInputs
public int[] getInputs()Getter for the field
inputs.- Returns:
- an array of objects
-
setInputs
public void setInputs(int[] inputs) Setter for the field
inputs.- Parameters:
inputs- an array of objects
-
getOutputs
public int[] getOutputs()Getter for the field
outputs.- Returns:
- an array of objects
-
setOutputs
public void setOutputs(int[] outputs) Setter for the field
outputs.- Parameters:
outputs- an array of objects
-
getDmStructure
Getter for the field
dmStructure.- Returns:
- a
DMSearch.LatentStructureobject
-
setDmStructure
Setter for the field
dmStructure.- Parameters:
structure- aDMSearch.LatentStructureobject
-
setAlphaSober
public void setAlphaSober(double alpha) Setter for the field
alphaSober.- Parameters:
alpha- a double
-
setAlphaPC
public void setAlphaPC(double alpha) Setter for the field
alphaPC.- Parameters:
alpha- a double
-
setDiscount
public void setDiscount(double discount) setDiscount.
- Parameters:
discount- a double
-
setUseFgES
public void setUseFgES(boolean set) setUseFgES.
- Parameters:
set- a boolean
-
search
search.
- Returns:
- a
Graphobject - Throws:
InterruptedException- if any.
-
applyDmSearch
public DMSearch.LatentStructure applyDmSearch(Graph pattern, Set<String> inputString, double penalty) applyDmSearch.
- Parameters:
pattern- aGraphobjectinputString- aSetobjectpenalty- a double- Returns:
- a
DMSearch.LatentStructureobject
-
equals
-