Skip to content
Prev 378317 / 398502 Next

Vectorizing a for-loop for cross-validation in R

Charles writes about saving execution time by eliminating redundancies.
If you see redundancies related to calling a time-consuming function
multiple times with the same arguments, a very easy way to speed up your
program is to memoise the functions using the package memoise.

HTH,
Eric
On Wed, Jan 23, 2019 at 8:34 PM Berry, Charles <ccberry at ucsd.edu> wrote: