setStoppingCriteria: Set stopping criteria.

Description Usage Arguments Details Methods References See Also Examples

Description

Define stopping criteria for functions that need a convergence check.

Usage

1
2
3
4
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

See Also as rrecsys, SVDclass, wALSclass, BPRclass.

Examples

1
2
3
setStoppingCriteria(autoConverge = TRUE)

setStoppingCriteria(nrLoops = 30)

rrecsys documentation built on June 10, 2019, 1:02 a.m.