Optional FixedPointSampling without Replacement
See original GitHub issue🐛 Bug
To Reproduce
Steps to reproduce the behavior:
……
def forward(self, data):
pos, batch = data.pos, data.batch
N = len(pos)
psid, ptid = knn_graph(pos, self.k, batch, loop=False, flow=self.flow) # edge_index:[E, 2]
……
Expected behavior
N * K == len(ptid)
Environment
- OS: Colab Linux
- Python version: 3
- PyTorch version: 1.2.0
- CUDA/cuDNN version: 10.0
- GCC version:
- Any other relevant information:
Additional context
data comes from shapenet and FixedPoints(2048)
Issue Analytics
- State:
- Created 4 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
Sampling with replacement
In sampling without replacement, the two sample values aren't independent. Practically, this means that what we got on the for the first one...
Read more >Ordered samples without replacement - YouTube
Many problems in combinatorics resolve to asking how many samples of a certain type may be collected from some universe.
Read more >34.2 - Random Sampling with Replacement | STAT 482
In general, with the POINT= option, you name a temporary variable (here, choose) whose value is the number of the observation you want...
Read more >Chapter 5 Choosing the Type of Probability Sampling
There are two types of simple random sampling: sampling with replacement and sampling without replacement. In sampling with replacement, after an element has ......
Read more >On the non‐recursive implementation of multistage sampling ...
Multistage sampling without replacement as formalized by recurrence formula (1) may be implemented using Algorithm 8 which generates an ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hello @rusty1s: it is just a type error in the
batch
line..long())
should be.long()
he typed one more ‘)’and the code should be
with my result.
and hello @cy69855522
In my code, I do not think there is a question on knn_graph’s
flow
issource_to_target
, I picked up the index, showing that it is okay.and I do not test the
batch
, perhaps it is the same.yours sincerely, @wmf1997
Yes, you are right 😃 Sorry!