What does replacement mean in numpy.random.choice?

后端 未结 2 763
既然无缘
既然无缘 2020-12-13 08:03

Here explains the function numpy.random.choice. However, I am confused about the third parameter replace. What is it? And in which case will it be

2条回答
  •  一整个雨季
    2020-12-13 09:00

    It controls whether the sample is returned to the sample pool. If you want only unique samples then this should be false.

提交回复
热议问题