8000 Fix shape of HypersphereMetric and KendallShapeMetric by ambellan · Pull Request #1560 · geomstats/geomstats · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix shape of HypersphereMetric and KendallShapeMetric #1560

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

Merged
merged 3 commits into from
Jun 2, 2022

Conversation

ambellan
Copy link
Contributor
@ambellan ambellan commented Jun 2, 2022

Checklist

  • I have made sure the code passes all unit tests. (refer to comment below)
  • I have linked to issues and PRs that are relevant to this PR.

Description

The constructors of HypersphereMetric and KendallShapeMetric do not (not correctly) handle the shape parameter. In fact, it gets lost on the way down to RiemannianMetric.
It can be solved with some slight modifications in the constructors of HypersphereMetric, KendallShapeMetric and QuotientMetric.

Issue

This closes #1559 (Shape not set correctly for HypersphereMetric and KendallShapeMetric).

@codecov
Copy link
codecov bot commented Jun 2, 2022

Codecov Report

Merging #1560 (226daf0) into master (f0ef895) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1560   +/-   ##
=======================================
  Coverage   87.22%   87.22%           
=======================================
  Files         100      100           
  Lines        9800     9800           
=======================================
  Hits         8547     8547           
  Misses       1253     1253           
Flag Coverage Δ
numpy 87.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
geomstats/geometry/pre_shape.py 92.49% <ø> (ø)
geomstats/geometry/hypersphere.py 80.91% <100.00%> (ø)
geomstats/geometry/quotient_metric.py 97.88% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0ef895...226daf0. Read the comment docs.

@luisfpereira
Copy link
Collaborator

Looks good. Thanks!

@luisfpereira 8862 luisfpereira merged commit 87a660d into geomstats:master Jun 2, 2022
luisfpereira added a commit that referenced this pull request Jun 2, 2022
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.

Shape not set correctly for HypersphereMetric and KendallShapeMetric
2 participants
0