Class TrainedDagSimulatorANM.SimResult
java.lang.Object
edu.cmu.tetrad.sem.TrainedDagSimulatorANM.SimResult
- Enclosing class:
TrainedDagSimulatorANM
Represents the result of a simulation, encapsulating the simulation data, variables,
the true Directed Acyclic Graph (DAG), and optional diagnostic information.
The class contains both continuous and discrete data matrices, as well as information
about any warnings or thresholds exceeded during the simulation process.
It also provides a method to generate a formatted report summarizing the results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal double[][]A container for simulation results, including continuous and discrete values, variables, and true DAG.final int[][]A 2D array representing the discrete codes for all variables in the simulation.final longRepresents the total number of samples generated during a simulation.final GraphRepresents the true Directed Acyclic Graph (DAG) associated with the simulation results.A list of variables involved in the simulation, including both continuous and discrete variables.final long[]Array storing the count of exceedance warnings for each variable index during simulations.final long[]Array storing the count of exceedance warnings for each variable index during simulations.final doubleArray storing the count of exceedance warnings for each variable index during simulations.final doubleArray storing the count of exceedance warnings for each variable index during simulations. -
Method Summary
Modifier and TypeMethodDescriptiongetSimReportText(double lambdaParents, boolean bootstrapRoots) Generates a simulation report summarizing the results of a TrainedDagSimulator.
-
Field Details
-
cont
public final double[][] contA container for simulation results, including continuous and discrete values, variables, and true DAG. -
disc
public final int[][] discA 2D array representing the discrete codes for all variables in the simulation. Each element in the array corresponds to the discrete encoding for a specific variable. Continuous variables are represented with a value of 0 in their respective columns. This array is used to store the categorical or discrete values relevant for the simulation. -
variables
-
trueDag
Represents the true Directed Acyclic Graph (DAG) associated with the simulation results. This graph encodes the underlying causal structure presumed to generate the data. It is typically used for validation purposes or to compare to the inferred structure. -
nSamples
public final long nSamplesRepresents the total number of samples generated during a simulation. This value is fundamental to interpreting the results of the simulation, as it determines the dataset size used for computational procedures.It is typically used to assess the scale of the simulation and may influence statistical measures computed from the results.
-
zExceedWarn1
public final long[] zExceedWarn1Array storing the count of exceedance warnings for each variable index during simulations. These warnings are triggered whenever certain thresholds or conditions are surpassed for the respective variables, which may indicate potential issues or anomalies in the simulation process. -
zExceedWarn2
public final long[] zExceedWarn2Array storing the count of exceedance warnings for each variable index during simulations. These warnings are triggered whenever certain thresholds or conditions are surpassed for the respective variables, which may indicate potential issues or anomalies in the simulation process. -
zWarn1
public final double zWarn1Array storing the count of exceedance warnings for each variable index during simulations. These warnings are triggered whenever certain thresholds or conditions are surpassed for the respective variables, which may indicate potential issues or anomalies in the simulation process. This array is used to track the number of times a variable's value exceeds a certain threshold during simulations. -
zWarn2
public final double zWarn2Array storing the count of exceedance warnings for each variable index during simulations. These warnings are triggered whenever certain thresholds or conditions are surpassed for the respective variables, which may indicate potential issues or anomalies in the simulation process. This array is used to track the number of times a variable's value exceeds a certain threshold during simulations.
-
-
Method Details
-
getSimReportText
Generates a simulation report summarizing the results of a TrainedDagSimulator. The report includes details about the simulation parameters, warnings, and other relevant information.- Parameters:
lambdaParents- The regularization parameter controlling the strength of parent relationships in the simulation.bootstrapRoots- A boolean indicating whether roots were bootstrapped in the simulation.- Returns:
- A string containing the formatted simulation report.
-