in SyntheticDataGenerators.py [0:0]
def genData(self):
d = self.distribution
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)
z[idx] = 1.0
yield z