set.control.cv | R Documentation |
Check if the input cross-validation parameters are allowed and set them to default values if they are not. Returns a list of well-defined cross-validation parameters.
set.control.cv(
criterion = c("dev", "mae", "mse", "aic", "bic"),
refit = TRUE,
nfolds = 5,
proportion = 0.3,
init = c("common", "separate"),
verbose = FALSE,
parallel = FALSE,
nthreads = 1
)
criterion |
information criterion to minimize for selecting the matrix rank |
refit |
if |
nfolds |
number of cross-validation folds |
proportion |
proportion of the data to be used as test set in each fold |
init |
initialization approach to use |
verbose |
if |
parallel |
if |
nthreads |
number of cores to use in parallel (only if |
A list
of control parameters for the cross-validation algorithm
set.control.init
, set.control.alg
, sgdgmf.cv
library(sgdGMF)
# Empty call
set.control.cv()
# Parametrized call
set.control.cv(criterion = "bic", proportion = 0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.