Conversation
|
Hi @luisfpereira,
Besides that, it seems that everything is working, |
|
Thank you for the comments and notebook @gviga.
Yes, the distinction is between continuous vs discrete. So, I'm considering that doing My main goal is to have a compatible API for the
What would be a use case of this feature in the notebook? |
|
Yes, you are right, I agree that calling vertices[indices] is not expensive and it's the way to go for now. Thank you @luisfpereira |
Now is available sampling the farthest points.
The register is already defined following the new registry structure
gviga
left a comment
There was a problem hiding this comment.
I ahve checked the code and it seems fine to be, at least the general structure, also recalling our old discussion. However, I believe that some notation can be changed (also why don't we introduce here the notions of continuous and discrete sampler?)
Moreover, it would make sense to add a farthest point sampling implementation without calling pyFM, I can do that in the future, but maybe @GiLonga has already some implementations
geomfum/sample.py
Outdated
| _Registry = PoissonSamplerRegistry | ||
|
|
||
|
|
||
| class NearestNeighborsIndexSampler(BaseSampler): |
There was a problem hiding this comment.
Is this tested on the sampling meshes notebook?
|
Thanks for the contributions and discussion @gviga and @GiLonga. Latest updates before merging:
The behavior is more and less unchanged. Merging now. As usual, let's address any comment in a new PR. |
Inspired by #9, this PR brings in the notion of sampler.
Notice this commit was initially done in luisfpereira@415cd8d.
Nevertheless, I believe this code is mature enough to merge (maybe after adding a notebook showing how this work?), whereas we still have a lot of work to do with #9.
Still need to address a couple of comments I've left in the code.