summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2020-05-05 08:30:49 +0200
committerRémi Flamary <remi.flamary@gmail.com>2020-05-05 08:30:49 +0200
commit2b31be018031cd23bfed6b76d75630a1a66520f1 (patch)
treeaec29307fd502382dbe5d70c57a5a6462eb25cfc
parent2e50bd2cf410576c8e12c60043b0bcedb6151fad (diff)
really reproducipble WDA example
-rw-r--r--examples/others/plot_WDA.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/others/plot_WDA.py b/examples/others/plot_WDA.py
index 009d902..bdfa57d 100644
--- a/examples/others/plot_WDA.py
+++ b/examples/others/plot_WDA.py
@@ -33,7 +33,7 @@ from ot.dr import wda, fda
n = 1000 # nb samples in source and target datasets
nz = 0.2
-np.random.RandomState(1)
+np.random.seed(1)
# generate circle dataset
t = np.random.rand(n) * 2 * np.pi