Skip to content

Commit 40ee453

Browse files
committed
Use local rng for 2gauss_prop
1 parent 9dd4d8d commit 40ee453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ot/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def make_data_classif(dataset, n, nz=.5, theta=0, p=.5, random_state=None, **kwa
155155
elif dataset.lower() == '2gauss_prop':
156156

157157
y = np.concatenate((np.ones(int(p * n)), np.zeros(int((1 - p) * n))))
158-
x = np.hstack((0 * y[:, None] - 0, 1 - 2 * y[:, None])) + nz * np.random.randn(len(y), 2)
158+
x = np.hstack((0 * y[:, None] - 0, 1 - 2 * y[:, None])) + nz * generator.randn(len(y), 2)
159159

160160
if ('bias' not in kwargs) and ('b' not in kwargs):
161161
kwargs['bias'] = np.array([0, 2])

0 commit comments

Comments
 (0)