Record Class RlcdParams
java.lang.Object
java.lang.Record
edu.cmu.tetrad.algcomparison.algorithm.other.RlcdParams
- Record Components:
alpha- the significance level for statistical tests, typically in the range [0, 1]. A smaller value (e.g., 0.05) indicates stricter criteria for rejecting the null hypothesis.stage1Method- a string specifying the approach used in stage 1. Common values include "all", but other custom methods can also be specified as needed.maxSamples- an integer specifying the maximum number of samples to process. A value of -1 indicates that all available samples should be used.rankTestMethod- a string indicating the method for rank testing. Supported methods include "svd" (for singular value decomposition) and "wilks" (for Wilks' lambda test via a hook to rank tests).svdTau- a numerical threshold (double) used in singular value decomposition for determining the rank. Singular values below this threshold are considered negligible.useGin- a boolean parameter that specifies whether the GIN (Generalized Independent Noise) method will be applied to orient leftover edges in the causal graph.
public record RlcdParams(double alpha, String stage1Method, int maxSamples, String rankTestMethod, double svdTau, boolean useGin)
extends Record
The RlcdParams record encapsulates the configuration parameters for RLCD (Rank-based Local Causal Discovery). It
provides various options for controlling the behavior and methods used in RLCD analysis.
-
Constructor Summary
ConstructorsConstructorDescriptionRlcdParams(double alpha, String stage1Method, int maxSamples, String rankTestMethod, double svdTau, boolean useGin) Creates an instance of aRlcdParamsrecord class.RlcdParams(Parameters ps) Constructs an instance of RlcdParams using the provided Parameters object. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxSamplesrecord component.Returns the value of therankTestMethodrecord component.Returns the value of thestage1Methodrecord component.doublesvdTau()Returns the value of thesvdTaurecord component.final StringtoString()Returns a string representation of this record class.booleanuseGin()Returns the value of theuseGinrecord component.
-
Constructor Details
-
RlcdParams
Constructs an instance of RlcdParams using the provided Parameters object.- Parameters:
ps- the Parameters object containing configuration values. Keys and their default values include: - "alpha": a double value with a default of 0.05. - "rlcd.stage1_method": a string specifying the stage 1 method, defaulting to "all". - "rlcd.max_samples": an integer representing the maximum number of samples, defaulting to -1 (interpreted as all samples). - "rlcd.rank_test": a string specifying the rank test method, defaulting to "svd". - "rlcd.svd_tau": a double numerical threshold for singular value decomposition, defaulting to 1e-7. - "rlcd.use_gin": a boolean indicating whether to orient leftover edges using GIN, defaulting to false.
-
RlcdParams
public RlcdParams(double alpha, String stage1Method, int maxSamples, String rankTestMethod, double svdTau, boolean useGin) Creates an instance of aRlcdParamsrecord class.- Parameters:
alpha- the value for thealpharecord componentstage1Method- the value for thestage1Methodrecord componentmaxSamples- the value for themaxSamplesrecord componentrankTestMethod- the value for therankTestMethodrecord componentsvdTau- the value for thesvdTaurecord componentuseGin- the value for theuseGinrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
alpha
public double alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
stage1Method
Returns the value of thestage1Methodrecord component.- Returns:
- the value of the
stage1Methodrecord component
-
maxSamples
public int maxSamples()Returns the value of themaxSamplesrecord component.- Returns:
- the value of the
maxSamplesrecord component
-
rankTestMethod
Returns the value of therankTestMethodrecord component.- Returns:
- the value of the
rankTestMethodrecord component
-
svdTau
public double svdTau()Returns the value of thesvdTaurecord component.- Returns:
- the value of the
svdTaurecord component
-
useGin
public boolean useGin()Returns the value of theuseGinrecord component.- Returns:
- the value of the
useGinrecord component
-