Description Usage Arguments Value
This function calculates the mml of a 1st order logit model given input and output variables. The mml 1st order logit formula was derived by [Neil, Wallace and Korb 1999]. The parameter priors are assumed to be normally distributed with standard deviation sigma = 3. Due to the difficulty of deriving a closed form formula for the determinant of the FIM, the logit parameters are estimated using the glm() function. The estimated parameters are then used to calculate the FIM and its determinant in order to calculate the mml score.
1 |
data |
A categorical data set. |
arities |
A vector of variable arities in data. |
sampleSize |
The sample size. That is, the number of rows of data. |
x |
A vector of input variables with any length. For an empty input variable, set x = c(). |
y |
The output/target variable. |
sigma |
The standard derivation of the assumed Gaussian distribution for parameter prior. The default value is 3 as suggested by the original paper. |
debug |
A boolean argument to display mml score for each part. |
The function by default returns the mml score. But it can also return a list of detailed values, such as nlogPrior, nlogF, etc.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.