[R] How important is set.seed

Bijesh Mishra bj@@m|@r@ @end|ng |rom gm@||@com
Tue Mar 22 04:17:54 CET 2022

if you think you are drawing a sample and you don't want to change your
sampling and your sample every time you draw a sample, you better use seed.
If you are unsure whether to use seed or not and if you think using seed
helps, it's better to use seed (this is a very general suggestion, and not
always applicable/useful.). Put seed before you draw a sample.

On Mon, Mar 21, 2022 at 7:04 PM Neha gupta <neha.bologna90 using gmail.com> wrote:

> Hello everyone
> I want to know
> (1) In which cases, we need to use set.seed while building ML models?
> (2) Which is the exact location we need to put the set.seed function i.e.
> when we split data into train/test sets, or just before we train a model?
> Thank you
>         [[alternative HTML version deleted]]
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list