Learn R Programming

rrecsys (version 0.9.5.4)

setStoppingCriteria: Set stopping criteria.

Description

Define stopping criteria for functions that need a convergence check.

Usage

setStoppingCriteria(autoConverge = FALSE, 
  deltaErrorThreshold = 1e-05, nrLoops = NULL, minNrLoops = 10)
showStoppingCriteria()
showDeltaError()

Arguments

autoConverge

class "logical", turns on the autoconvergence algorithm.

deltaErrorThreshold

class "numeric", is the threshold for the autoconvergence algorithm.

nrLoops

class "numeric", number of loops that will be performed in case autoConvergence is FALSE

minNrLoops

class "numeric", the minimum number of loops to consider before verifying the deltaErrorThreshold.

Methods

showStoppingCriteria

Print on console the current configuration of the convergence algorithm.

showDeltaError

Report the delta error on each iteration of the algorithm that requires an autoconvergence algorithm.

Details

If autoConvergence = TRUE tells the package to monitor the difference of global RMSE on two consecutive iterations, and to see if it drops below a threshold value. Whenever it drops under the specified value the iteration is considered converged. If FALSE the limit of iterations is delimited by nrLoops

References

M. D. Ekstrand, M. Ludwig, J. Kolb, and J. T. Riedl, <U+201C>LensKit: a modular recommender framework,<U+201D>, Proc. fifth ACM Conf. Recomm. Syst. - RecSys <U+2019>11, p. 349, 2011.

See Also

See Also as rrecsys, SVDclass, wALSclass, BPRclass.

Examples

Run this code
# NOT RUN {
setStoppingCriteria(autoConverge = TRUE)

setStoppingCriteria(nrLoops = 30)

# }

Run the code above in your browser using DataLab