Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tkipf/gcn
/ sample_mask
Function
sample_mask
gcn/utils.py:17–21 ·
view source on GitHub ↗
Create mask.
(idx, l)
Source
from the content-addressed store, hash-verified
15
16
17
def
sample_mask(idx, l):
18
""
"Create mask."
""
19
mask = np.zeros(l)
20
mask[idx] = 1
21
return
np.array(mask, dtype=np.bool)
22
23
24
def
load_data(dataset_str):
Callers
1
load_data
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected