You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for the amazing work.
I'm interested in using cp.random.choice with replace=False as well as a given probability array.
Currently this feature is not implemented. see here
Before I just write my own version of this function, I'd like to try and add the functionality to cupy. Since this would be my first contribution to cupy, I'd like to get some starter help...
Questions:
Are there any ongoing efforts / PRs to do that?
The choice function for the Generator class is completely missing. Is it worth it to add the functionality to cp.random.choice or should I directly try to add the choice function to the Generator class?
Am I understanding the code correctly?
_sample.py just calls _generator.py (old random functions)
_generator_api.pyx is the new Generator class
Since I am no cuda/Cython pro: Why is the old choice function exclusively in python while the new Generator class requires Cython?
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Hi, thanks for your interest in contributing to CuPy! Random API coverages are tracked in #4557. I haven't assessed in detail but supporting replace=False will likely require familiarity with CUDA, even implementing it naively with syncthreads to prevent the same index to be picked.
Description
Hi guys,
First of all, thank you for the amazing work.
I'm interested in using
cp.random.choice
withreplace=False
as well as a given probability array.Currently this feature is not implemented. see here
Before I just write my own version of this function, I'd like to try and add the functionality to cupy. Since this would be my first contribution to cupy, I'd like to get some starter help...
Questions:
cp.random.choice
or should I directly try to add the choice function to the Generator class?_sample.py
just calls_generator.py
(old random functions)_generator_api.pyx
is the new Generator classAdditional Information
No response
The text was updated successfully, but these errors were encountered: