Class TrainedDagSimulatorGNM2.NodeReport
java.lang.Object
edu.cmu.tetrad.sem.TrainedDagSimulatorGNM2.NodeReport
- Enclosing class:
TrainedDagSimulatorGNM2
Represents a report for a single node in a trained directed acyclic graph (DAG) structure.
The report contains metrics specific to the node, which can vary depending on whether the
node represents a discrete or continuous variable. This is an immutable class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether the node represents a discrete variable.final doubleMean Squared Error (MSE) for the training dataset associated with the node.final StringNode identifier.final intNumber of discrete levels for the node.List of parent nodes for the current node.final doubleMean and standard deviation of residuals for the training dataset associated with the node.final doubleStandard deviation of residuals for the training dataset associated with the node.final intNumber of training rows used for the node.final doubleCross-entropy loss for the training dataset associated with the node. -
Method Summary
-
Field Details
-
node
Node identifier. -
discreteChild
public final boolean discreteChildWhether the node represents a discrete variable. -
parents
-
trainingRowsUsed
public final int trainingRowsUsedNumber of training rows used for the node. -
mseTrain
public final double mseTrainMean Squared Error (MSE) for the training dataset associated with the node. This metric is relevant only for nodes representing continuous variables. If the node is a discrete variable, this value will be NaN. -
residualMean
public final double residualMeanMean and standard deviation of residuals for the training dataset associated with the node. This metric is relevant only for nodes representing continuous variables. If the node is a discrete variable, these values will be NaN. -
residualSd
public final double residualSdStandard deviation of residuals for the training dataset associated with the node. This metric is relevant only for nodes representing continuous variables. If the node is a discrete variable, this value will be NaN. -
xentTrain
public final double xentTrainCross-entropy loss for the training dataset associated with the node. This metric is relevant only for nodes representing discrete variables. If the node is a continuous variable, this value will be NaN. -
numLevels
public final int numLevelsNumber of discrete levels for the node. This metric is relevant only for nodes representing discrete variables. If the node is a continuous variable, this value will be 0.
-