Class TRffBicScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.TRffBicScore
- All Implemented Interfaces:
ScoreWrapper, HasParameters, TetradSerializable, Serializable
@Score(name="TRFF BIC Score",
command="trff-bic-score",
dataType=Mixed)
@General
@Mixed
public class TRffBicScore
extends Object
implements ScoreWrapper
The
TRffBicScore class is a scoring mechanism designed to evaluate the fit and complexity
of a data model. This score uses the Student-T Fourier Feature Bayes Information Criterion (BIC),
which is particularly suitable for mixed-data settings. The class provides parameterized control over
regularization, feature tuning, and penalty adjustments, allowing flexibility during model evaluation.
The scoring mechanism is implemented within the Tetrad framework and adheres to the ScoreWrapper interface.
It is annotated with Score, specifying the name, command, and applicable data type.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the data type associated with this scoring mechanism.Provides a textual description of the current scoring mechanism.Retrieves a list of parameter names associated with the Student-T Random Fourier Feature Bayes Information Criterion (BIC) scoring mechanism.getScore(DataModel dataSet, Parameters parameters) Calculates and returns a score for the given dataset based on the specified parameters.getVariable(String name) Retrieves a variable from the dataset based on the given name.
-
Constructor Details
-
TRffBicScore
public TRffBicScore()Constructor for the TRffBicScore class. This class serves as a Student-T Fourier Feature Bayes Information Criterion (BIC) scoring mechanism typically applied in mixed-data settings.The score is used in conjunction with algorithms that evaluate the fit and complexity of a model based on penalized likelihood principles.
This constructor initializes a new instance of the TRffBicScore without requiring parameters.
-
-
Method Details
-
getScore
Calculates and returns a score for the given dataset based on the specified parameters.- Specified by:
getScorein interfaceScoreWrapper- Parameters:
dataSet- The dataset for which the score is to be calculated. It must be an instance of DataSet.parameters- The parameters used to configure the scoring process, including tuning knobs such as ridge regularization, number of random Fourier features, and penalty discount.- Returns:
- An instance of
TRffBicScoreconfigured with the provided dataset and parameters. - Throws:
IllegalArgumentException- If the provided dataset is not an instance of DataSet.
-
getDescription
Provides a textual description of the current scoring mechanism.- Specified by:
getDescriptionin interfaceScoreWrapper- Returns:
- a string representing the description of the T-RFF BIC Score
-
getDataType
Retrieves the data type associated with this scoring mechanism.- Specified by:
getDataTypein interfaceScoreWrapper- Returns:
- the data type of the score, which corresponds to
DataType.Mixed.
-
getParameters
Retrieves a list of parameter names associated with the Student-T Random Fourier Feature Bayes Information Criterion (BIC) scoring mechanism. These parameters can be used to configure the behavior of the scoring process.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceScoreWrapper- Returns:
- a list of parameter names as strings. Each parameter represents a configurable aspect of the scoring mechanism, such as ridge regularization, number of Fourier features, penalty discount, and other optional settings.
-
getVariable
Retrieves a variable from the dataset based on the given name.- Specified by:
getVariablein interfaceScoreWrapper- Parameters:
name- the name of the variable to retrieve. It must correspond to a variable contained in the dataset.- Returns:
- the
Noderepresenting the variable associated with the specified name. Returns null if the dataset does not contain a variable with the given name.
-