MCPcopy Index your code
hub / github.com/shenweichen/GraphEmbedding / gen_prob_dist

Function gen_prob_dist

examples/alias.py:14–16  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

12
13
14def gen_prob_dist(size):
15 probabilities = np.random.randint(0, 100, size)
16 return probabilities / np.sum(probabilities)
17
18
19def simulate(size=100, sample_count=10000):

Callers 1

simulateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected