Class BlocksBicScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.BlocksBicScore
- All Implemented Interfaces:
BlockScoreWrapper,ScoreWrapper,HasParameters,TetradSerializable,Serializable
@Score(name="Blocks-BIC",
command="blocks-bic-score",
dataType=Mixed)
@Mixed
public class BlocksBicScore
extends Object
implements BlockScoreWrapper
Wrapper for Blocks BIC Score (Blocks-BIC) version.
- Version:
- $Id: $Id
- Author:
- josephramsey, bryanandrews
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the BasisFunctionBicScore class. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the data type associated with this score wrapper.Provides a textual description of the score type.Retrieves a list of parameter keys used in the computation or configuration of the score.getScore(DataModel model, Parameters parameters) Computes and returns a score based on the provided data model and parameter settings.getVariable(String name) Retrieves a variable by its name from the associated data set.voidsetBlockSpec(BlockSpec blockSpec) Sets the block specification to define the structure for organizing variables into predefined blocks for analysis.
-
Constructor Details
-
BlocksBicScore
public BlocksBicScore()Initializes a new instance of the BasisFunctionBicScore class.
-
-
Method Details
-
setBlockSpec
Sets the block specification to define the structure for organizing variables into predefined blocks for analysis.- Specified by:
setBlockSpecin interfaceBlockScoreWrapper- Parameters:
blockSpec- the block specification to be set
-
getScore
Computes and returns a score based on the provided data model and parameter settings.- Specified by:
getScorein interfaceBlockScoreWrapper- Specified by:
getScorein interfaceScoreWrapper- Parameters:
model- the data model that serves as the basis for the score computationparameters- contains configuration and parameter values used during the score computation- Returns:
- a
Scoreobject representing the computed result based on the given model and parameters
-
getDescription
Provides a textual description of the score type.- Specified by:
getDescriptionin interfaceBlockScoreWrapper- Specified by:
getDescriptionin interfaceScoreWrapper- Returns:
- a string representing the description of the Blocks BIC score, indicating that it requires block specifications for computation.
-
getDataType
Retrieves the data type associated with this score wrapper.- Specified by:
getDataTypein interfaceBlockScoreWrapper- Specified by:
getDataTypein interfaceScoreWrapper- Returns:
- the data type, which indicates whether the data is continuous, discrete, mixed, or belongs to other
specific categories such as covariance or graph. In this implementation, the data type is
DataType.Mixed.
-
getParameters
Retrieves a list of parameter keys used in the computation or configuration of the score.- Specified by:
getParametersin interfaceBlockScoreWrapper- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceScoreWrapper- Returns:
- a list of parameter names as strings. These parameters are required for score computation or configuration and include elements such as penalty discounts or other algorithm-specific settings.
-
getVariable
Retrieves a variable by its name from the associated data set.- Specified by:
getVariablein interfaceBlockScoreWrapper- Specified by:
getVariablein interfaceScoreWrapper- Parameters:
name- the name of the variable to retrieve- Returns:
- the
Nodeobject representing the variable with the specified name, ornullif no such variable exists
-