def sample(self, k=1):
        rs = np.random.random(k)
        # binary search to get indices
        return np.searchsorted(self._cdf, rs)
Get mapping(s).
dataset/ETHPy150Open ml-slac/deep-jets/utils/sampling.py/MultinomialSampler.sample--crossover with--dataset/ETHPy150Open eriky/ESClient/esclient.py/ESClient.get_mapping