MCPcopy Create free account
hub / github.com/PythonOT/POT / setup

Function setup

benchmarks/emd.py:9–16  ·  view source on GitHub ↗
(n_samples)

Source from the content-addressed store, hash-verified

7
8
9def setup(n_samples):
10 rng = np.random.RandomState(789465132)
11 x = rng.randn(n_samples, 2)
12 y = rng.randn(n_samples, 2)
13
14 a = ot.utils.unif(n_samples)
15 M = ot.dist(x, y)
16 return a, M
17
18
19if __name__ == "__main__":

Callers 2

exec_benchFunction · 0.70
setup.pyFile · 0.50

Calls 1

randnMethod · 0.45

Tested by

no test coverage detected