def __init__(self, p, verbose=False):
        n = len(p)
        p = p.astype(float) / sum(p)
        self._cdf = np.cumsum(p)
Initialize the sampler.
dataset/ETHPy150Open ml-slac/deep-jets/utils/sampling.py/MultinomialSampler.__init__