Class BfBlocksBicScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.BfBlocksBicScore
- All Implemented Interfaces:
ScoreWrapper, HasParameters, TetradSerializable, Serializable
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.
-
Constructor Details
-
BfBlocksBicScore
public BfBlocksBicScore()Initializes a new instance of the BasisFunctionBicScore class.
-
-
Method Details
-
getScore
Computes and returns a score based on the provided data model and parameter settings.- 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 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 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 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 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
-