Description Usage Arguments Value References Examples
The Akaike Information Criterion's objective is to prevent model overfitting by adding a penalty term which penalizes more complex models. Its formal definition is:
-2*ln(L)+2*k
where L is the maximized value of the likelihood function. A smaller AIC value suggests that the model is a better fit for the data.
1 |
model |
A base R model object (e.g., |
X |
Validation data as a 2D matrix of (observations, features).
If |
y |
True labels as a 1D vector.
If |
AIC value gets returned as a float.
https://en.wikipedia.org/wiki/Akaike_information_criterion
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.