summaryrefslogtreecommitdiff
path: root/test/test_da.py
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2017-07-26 11:42:35 +0200
committerRémi Flamary <remi.flamary@gmail.com>2017-07-26 11:42:35 +0200
commit347e6288b87cbeef9b8fbc1a08cd130b96de1d61 (patch)
tree1d2dbc4faea4d74e1401bf2ff278e697ef214d01 /test/test_da.py
parent67b011a2a6a0cb8dffbb7a2619875f0e0d79588c (diff)
n to n_samples
Diffstat (limited to 'test/test_da.py')
-rw-r--r--test/test_da.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/test_da.py b/test/test_da.py
index 8df4795..a38390f 100644
--- a/test/test_da.py
+++ b/test/test_da.py
@@ -3,18 +3,15 @@ import numpy as np
import ot
-# import pytest
-
-
def test_otda():
- n = 150 # nb samples
+ n_samples = 150 # nb samples
np.random.seed(0)
- xs, ys = ot.datasets.get_data_classif('3gauss', n)
- xt, yt = ot.datasets.get_data_classif('3gauss2', n)
+ xs, ys = ot.datasets.get_data_classif('3gauss', n_samples)
+ xt, yt = ot.datasets.get_data_classif('3gauss2', n_samples)
- a, b = ot.unif(n), ot.unif(n)
+ a, b = ot.unif(n_samples), ot.unif(n_samples)
# LP problem
da_emd = ot.da.OTDA() # init class