简体   繁体   English

set.seed()函数 - 设置种子的最佳值是什么?

[英]set.seed() function - What is the best value for setting a seed?

I was wondering if a certain seed value was better for a norm dist sample of data as opposed to a set that is skewed. 我想知道某个种子值是否更适合于一个norm dist数据样本而不是一个倾斜的集合。 I understand that using the same seed on the same data will get you the same randomly generated records, I just wonder if seed 1-10 was better a neg skewed data range and 90-100 was better on a positive skew. 我知道在相同的数据上使用相同的种子将获得相同的随机生成的记录,我只是想知道种子1-10是否更好的是一个负偏斜的数据范围,并且90-100在正偏斜上更好。

The only real benefit of a seed is that your results are reproducible. 种子的唯一真正好处是你的结果是可重复的。 Ranges of seeds (at least as far as I know) aren't likely to be skewed in one direction more than any other, they just provide a concrete seed for the pseudo random generator rather than to use some entropy in the system. 种子范围(至少据我所知)不可能在一个方向上偏向任何其他方向,它们只是为伪随机生成器提供具体种子而不是在系统中使用一些熵。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM