- X
a matrix or data frame of discrete ratings with missing values.
- values
an optional numeric vector giving the possible values of the
ratings. Currently, these are assumed to be the same for all columns. If
NULL, the unique values of the observed parts of X are used.
- lambda
a numeric vector giving values of the regularization
parameter. See fraction_grid() for the default values.
- relative
a logical indicating whether the values of the
regularization parameter should be considered relative to a certain
reference value computed from the data at hand. If TRUE (the
default), the values of lambda are multiplied with the largest
singular value of the median-centered data matrix with missing values
replaced by zeros.
- splits
an object inheriting from class "split_control", as
generated by holdout_control() for repeated holdout validation
or cv_folds_control() for \(K\)-fold cross-validation, or a
list of index vectors giving different validation sets of observed cells as
generated by create_splits(). Cells in the validation set
will be set to NA for fitting the algorithm with the training set of
observed cells.
- loss
a character string specifying the robust loss function for the
loss part of the objective function. Possible values are
"pseudo_huber" (the default) for the pseudo-Huber loss,
"absolute" for the absolute loss, and "truncated" for the
truncated absolute loss. See ‘Details’ for more information.
- loss_const
tuning constant for the loss function. For the
pseudo-Huber loss, the default value is the average step size between the
rating categories in values. For the truncated absolute loss,
the default is half the range of the rating categories in values.
This is ignored for the absolute loss, which does not have a tuning
parameter. See ‘Details’ for more information.
- ...
additional arguments to be passed down to rdmc().