'Difference between np.random.permutation and np.random.choice

What is the difference between using np.random.permutation on a 1D array vs using np.random.choice with size equal to the length of the 1D array?

They seem the same to me.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source