def genData()

in DataGenerator.py [0:0]


    def genData(self):
        d = self.distribution  # (**self.params)
        d.random_state = np.random.default_rng(seed=self.seed)
        np_rng = np.random.RandomState(seed=self.seed)
        for i in range(self.size):
            x = d.rvs(1)[0]
            while x > self.dim:
                x = d.rvs(1)[0]
            pi = np_rng.permutation(self.dim)
            idx = pi[:x]
            z = np.zeros(self.dim) + 0.1
            z[idx] = 1.0
            yield z