Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
c167373e
Unverified
Commit
c167373e
authored
Jan 31, 2020
by
Da Zheng
Committed by
GitHub
Jan 31, 2020
Browse files
[Doc] Fix the doc of NeighborSampler. (#1236)
* fix. * fix.
parent
a9dabcc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
python/dgl/contrib/sampling/sampler.py
python/dgl/contrib/sampling/sampler.py
+1
-7
No files found.
python/dgl/contrib/sampling/sampler.py
View file @
c167373e
...
...
@@ -240,14 +240,8 @@ class NeighborSampler(NodeFlowSampler):
The DGLGraph where we sample NodeFlows.
batch_size : int
The batch size (i.e, the number of nodes in the last layer)
expand_factor : int
, float, str
expand_factor : int
The number of neighbors sampled from the neighbor list of a vertex.
The value of this parameter can be:
* int: indicates the number of neighbors sampled from a neighbor list.
* float: indicates the ratio of the sampled neighbors in a neighbor list.
* str: indicates some common ways of calculating the number of sampled neighbors,
e.g., ``sqrt(deg)``.
Note that no matter how large the expand_factor, the max number of sampled neighbors
is the neighborhood size.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment