nadaataiyab
8/9/2017 - 3:54 PM

Bootstrap function

Bootstrap function

def bootstrap(sample, resamples=10000):
    return[np.random.choice(sample, replace=True, size=len(sample)) for i in xrange(resamples)]