Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@johnharveymath
Copy link
Collaborator

Description

When there are multiple basepoints, both implementations of random_tangent_vec (the implementations in manifold.py and base.py) should now check that n_samples matches the number of basepoints. If the values do not match, then in case n_samples == 1 (default option), it resets it to be equal to the number of basepoints. Otherwise an error is raised.

Docstrings have been updated to clarify that the vectors generated have no statistical value.

Issue

Fixes #1989 insofar as the bug is no longer present. The reference to uniformity of direction understated the difficulty of that problem, so it should probably be ignored.

@luisfpereira luisfpereira self-requested a review April 11, 2024 10:16
Copy link
Collaborator

@luisfpereira luisfpereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @johnharveymath! Merging.

@luisfpereira luisfpereira merged commit 6bfc3f6 into geomstats:main Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: random_tangent_vec has different behaviours depending on class

2 participants