wking wking - 2 years ago 181
Python Question

What does replacement mean in numpy.random.choice?

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 useful? Thanks!

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download