Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some consistency changes to subgrad_distance #25

Merged
merged 23 commits into from
Jun 15, 2023

Conversation

hajg-ijk
Copy link
Member

Changes default exponent to be used in the subgrad_distance function to 2 to mimic the behavior of grad_distance, and changes default atol to 0.
Finally, returns a tangent vector rescaled by rand() after having normalized it, since any tangent vector of norm less than or equal to one is a subgradient of the distance for p=q. This should make it closer to sampling from a normal cone.

@codecov
Copy link

codecov bot commented Jun 13, 2023

Codecov Report

Merging #25 (2e2db8c) into main (bea7996) will increase coverage by 0.05%.
The diff coverage is 100.00%.

❗ Current head 2e2db8c differs from pull request most recent head b2e09e5. Consider uploading reports for the commit b2e09e5 to get more accurate results

@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   95.02%   95.08%   +0.05%     
==========================================
  Files          20       15       -5     
  Lines         342      305      -37     
==========================================
- Hits          325      290      -35     
+ Misses         17       15       -2     
Impacted Files Coverage Δ
src/subgradients.jl 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@kellertuer kellertuer left a comment

Choose a reason for hiding this comment

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

Looks good to me. Shall we register this as version 0.3.5? Then you have to “bump version”, i.e. change the number in the Project.toml.

@kellertuer kellertuer merged commit a607979 into JuliaManifolds:main Jun 15, 2023
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.

2 participants