Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
14
def
gen_prob_dist(size):
15
probabilities = np.random.randint(0, 100, size)
16
return
probabilities / np.sum(probabilities)
17
18
19
def
simulate(size=100, sample_count=10000):
Callers
1
simulate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected