Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 auto-convergence algorithm.

deltaErrorThreshold

class "numeric", is the threshold for the auto-convergence 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.

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

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 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

Examples

setStoppingCriteria(autoConverge = TRUE)

setStoppingCriteria(nrLoops = 30)

rrecsys

Environment for Evaluating Recommender Systems

v0.9.7.3.1
GPL-3
Authors
Ludovik Çoba [aut, cre, cph], Markus Zanker [ctb], Panagiotis Symeonidis [ctb]
Initial release
2018-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.