MCPcopy Create free account
hub / github.com/dask/dask / test_multinomial

Function test_multinomial

dask/array/tests/test_random.py:298–303  ·  view source on GitHub ↗
(generator_class)

Source from the content-addressed store, hash-verified

296
297
298def test_multinomial(generator_class):
299 for size, chunks in [(5, 3), ((5, 4), (2, 3))]:
300 x = generator_class().multinomial(20, [1 / 6.0] * 6, size=size, chunks=chunks)
301 y = np.random.multinomial(20, [1 / 6.0] * 6, size=size)
302
303 assert x.shape == y.shape == x.compute().shape
304
305
306def test_choice(generator_class):

Callers

nothing calls this directly

Calls 3

generator_classFunction · 0.85
multinomialMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected