evaluationScheme
creates an evaluation scheme (training and test data)
with k
runs and one of the given methods:"split"
randomly assigns
the proportion of objects given by train
to the training set and
the rest is used for the test set.
"cross-validation"
creates a k-fold cross-validation scheme. The data
is randomly split into k parts and in each run k-1 parts are used for
training and the remaining part is used for testing. After all k runs each
part was used as the test set exactly once.
"bootstrap"
creates the training set by taking a bootstrap sample
(sampling with replacement) of size train
times number of users in
the data set.
All objects not in the training set are used for testing.
For evaluation, Breese et al. (1998) introduced the
four experimental protocols called Given 2, Given 5, Given 10 and All-but-1.
For the Given x protocols, for each user the ratings for x randomly chosen
items are given to the recommender algorithm to learn the model while
the remaining items are withheld for evaluation. For All-but-x,
the algorithm is trained with all but
x withheld ratings. given
controls x in the evaluations scheme.
Positive integers result in a Given x protocol, while negative values
produce a All-but-x protocol.