On Sat, 5 Nov 2022 22:41:45 +0800 Jiaming Yuan <jm.y...@outlook.com> wrote:
> Examples with CPU time > 2.5 times elapsed time > I'm wondering what the note is trying to tell me and how can I > resolve it with confidence. Henrik Bengtsson already gave a good explanation of the problem. Not sure what exactly is the right thing to do, but one way to get rid of this warning could be to pass the argument nthread = min(parallel::detectCores(), 2) to the xgb.cv invocation (if you already use the parallel package anywhere) or maybe to hard-code the use of only one thread in the example. -- Best regards, Ivan ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel