I need to use a function in numpy
package, say numpy.random.choice
(another Python lib function random.choice
samples the list uniformly while I want it to do that from some discrete distributions).
My program will be distributed to a lot of people to develop and test. So that means they should also install numpy
before they are able to run the code. I'm now trying to find a way to get rid of installing the whole numpy library.
Definitely rewriting the function myself is a solution (for example using alias method). But I'm wondering that is there a way that I can only install the part of numpy
related to numpy.random.choice
?