Class StARS
- All Implemented Interfaces:
Algorithm, HasParameters, TetradSerializable, Serializable
The sweep and instability machinery is delegated to ParameterSweep; this class is a thin selector over
the resulting SweepReport, whose full evidence (per-value instabilities, point graphs, edge-probability
graphs) can be obtained programmatically by running the harness directly.
Parameters read from the Parameters object: "percentSubsampleSize" (fraction of the sample per resample), "numSubsamples", "StARS.cutoff" (the instability cutoff beta), "logScale" (if true, evaluated values are 10^lambda for lambda in [low, high]), and optionally Params.SEED for reproducible resampling.
Changes from the pre-2026 implementation, preserved semantics aside: (1) with "logScale" set, the parameter is now evaluated at the transformed value 10^lambda during the sweep, where previously the sweep evaluated the raw lambda but the final search used 10^lambda; (2) if no value's instability falls below the cutoff, the most stable value is used (with a log message), where previously the parameter was set to NaN; (3) resampling is seed-controlled via Params.SEED; (4) a concurrency hazard in the resample collection was removed.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
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 list of parameter names that are used.search(DataModel dataSet, Parameters parameters) Runs the search.
-
Constructor Details
-
StARS
-
-
Method Details
-
search
Runs the search.- Specified by:
searchin interfaceAlgorithm- Parameters:
dataSet- The data set to run to the search on.parameters- The paramters of the search.- Returns:
- The result graph.
- Throws:
InterruptedException- if any
-
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.
-