| setStoppingCriteria {rrecsys} | R Documentation |
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 |
deltaErrorThreshold |
class |
nrLoops |
class |
minNrLoops |
class |
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
Methods
showStoppingCriteriaPrint on console the current configuration of the convergence algorithm.
showDeltaErrorReport the delta error on each iteration of the algorithm that requires an auto-convergence algorithm.
References
M. D. Ekstrand, M. Ludwig, J. Kolb, and J. T. Riedl, “LensKit: a modular recommender framework,”, Proc. fifth ACM Conf. Recomm. Syst. - RecSys ’11, p. 349, 2011.
See Also
See Also as rrecsys, SVDclass, wALSclass, BPRclass.
Examples
setStoppingCriteria(autoConverge = TRUE)
setStoppingCriteria(nrLoops = 30)