Closed mbruhns closed 6 months ago
That FutureWarning is not related to the problem you are experiencing. It is warning of a future change (not sure of the timeline), but doesn't affect future behavior.
We will investigate this issue. We have been exploring several issues related to non-determinism in Leiden, we will need to evaluate what the impact of random_state should be and validate that the implementation is working as expected. I will let you know what we discover, and if something is wrong we will fix it.
The short answer... this is expected behavior for your test example. Details below.
Looked through the code to evaluate this. Our Leiden implementation was built upon our Louvain implementation. Currently our use of random_state is minimal.
If you have a use case for why more randomness would be helpful, please let us know. We're happy to explore exposing options for enabling randomness (1) and (2). It just hasn't been a priority so far.
Alright, thank you for clarifying this!
Going to close this. If you encounter situations where enabling these other random_state uses would be helpful please open a new issue. We do plan on eventually measuring the impact of these and adjusting the implementation accordingly, so also keep an eye on that work.
Version
24.06.00a42
Which installation method(s) does this occur on?
Conda
Describe the bug.
When changing the parameter
random_state
forcugraph.leiden
the detected clusters are not affected. I am not too sure about the order of magnitude of this effect, but I expected this to somewhat change the results.Minimum reproducible example
Relevant log output
No response
Environment details
Other/Misc.
When I construct the KNN-graph I get the following warning:
/home/ubuntu/miniforge3/envs/rapids/lib/python3.10/site-packages/cugraph/structure/symmetrize.py:93: FutureWarning: Multi is deprecated and the removal of multi edges will no longer be supported from 'symmetrize'. Multi edges will be removed upon creation of graph instance. warnings.warn(
Am I doing something wrong here, or does deprecation warning not effect this?
Code of Conduct