8000 Clean backend (only a bit) by luisfpereira · Pull Request #1570 · geomstats/geomstats · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Clean backend (only a bit) #1570

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 4 commits into from
Jun 11, 2022
Merged

Conversation

luisfpereira
Copy link
Collaborator

This PR cleans slightly the backend.

A better distinction between private and public methods is done (it makes it easier to understand what will be imported to gs).

Additionally, the geomstats._backend_common.py is created to avoid definition the same function for all backends. The handling of imports is changed to ensure BackendImporter looks into this new file.

This is the starting point of more meaningful changes in the backends related to precision.

@luisfpereira luisfpereira requested a review from ninamiolane June 9, 2022 18:31
@codecov
Copy link
codecov bot commented Jun 9, 2022

Codecov Report

Merging #1570 (51aa694) into master (c449a29) will increase coverage by 2.36%.
The diff coverage is 96.10%.

@@            Coverage Diff             @@
##           master    #1570      +/-   ##
==========================================
+ Coverage   88.95%   91.31%   +2.36%     
==========================================
  Files         101      107       +6     
  Lines       10089    10291     +202     
==========================================
+ Hits         8974     9396     +422     
+ Misses       1115      895     -220     
Flag Coverage Δ
autograd 89.01% <96.21%> (+0.06%) ⬆️
numpy 87.35% <93.55%> (?)

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

Impacted Files Coverage Δ
geomstats/_backend/_backend_config.py 100.00% <ø> (ø)
geomstats/_backend/autograd/_common.py 88.89% <ø> (ø)
geomstats/_backend/numpy/_common.py 88.89% <ø> (ø)
geomstats/_backend/__init__.py 81.97% <88.89%> (+6.97%) ⬆️
geomstats/_backend/numpy/linalg.py 94.12% <92.00%> (ø)
geomstats/_backend/autograd/linalg.py 95.90% <94.45%> (ø)
geomstats/_backend/_common.py 100.00% <100.00%> (ø)
geomstats/_backend/autograd/__init__.py 98.45% <100.00%> (-0.04%) ⬇️
geomstats/_backend/autograd/autodiff.py 97.78% <100.00%> (+0.06%) ⬆️
geomstats/_backend/autograd/random.py 100.00% <100.00%> (ø)
... and 13 more

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 6e169c3...51aa694. Read the comment docs.

Copy link
Collaborator
@ninamiolane ninamiolane left a comment

Choose a reason for hiding this comment

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

Excellent, thank you! Can't wait for our next-generation backends 🎉

@ninamiolane ninamiolane merged commit 57ca672 into geomstats:master Jun 11, 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.

2 participants
0