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

Product manifold #109

Merged
merged 56 commits into from
Oct 30, 2019
Merged

Product manifold #109

merged 56 commits into from
Oct 30, 2019

Conversation

ferrine
Copy link
Member

@ferrine ferrine commented Sep 7, 2019

Adding Product Manifold there

@ferrine ferrine requested a review from rrkarim October 16, 2019 10:07
@ferrine
Copy link
Member Author

ferrine commented Oct 16, 2019

@rrkarim you are welcome to review the PR. If anything is not clear enough, I will elaborate on docs more

Copy link
Member

@rrkarim rrkarim left a comment

Choose a reason for hiding this comment

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

You do not register bound methods in scaled manifold for methods like geodesic. So something like this shouldn't work:

ball = geoopt.PoincareBallExact()
sball = geoopt.Scaled(ball, 2)
rsball = geoopt.Scaled(sball, 0.5)
rsball.geodesic

Copy link
Member

@rrkarim rrkarim left a comment

Choose a reason for hiding this comment

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

Haven't checked tests yet, can you please fix please fix travis fails and I will check the tests tomorrow, other than that I guess we can finally merge it.

@ferrine
Copy link
Member Author

ferrine commented Oct 30, 2019

@rrkarim I've fixed tests, they were related to black updates

@ferrine ferrine merged commit 1cefe59 into master Oct 30, 2019
@ferrine
Copy link
Member Author

ferrine commented Oct 30, 2019

Thanks!

@ferrine ferrine deleted the product-manifold branch October 30, 2019 13:54
andbloch pushed a commit to andbloch/geoopt that referenced this pull request Dec 29, 2019
* draft product manifold class

* add initial progress on some methods

* test slicing

* add projections

* draft other methods

* add tests and fix broadcasting bugs

* add typehints and make sure there are no more broadcasting problems

* fix lint issue

* fix lint issues

* fix dist

* add scaling utils

* fix typo

* fix inner product result

* add scalings for poincare

* scaling rescaling test

* fix dir method

* empty tensor fix

* add a bit more tests for product manifold

* fix typo

* some nitpicka

* add random methods and device/dtype consistency when __init__

* rest random

* remove annotation

* fix lint errors

* dist test

* make scaled implementation much cleaner

* add comments

* fix docstring

* add restricted methods

* black

* better name

* fix logmap

* fix logmap

* fix logmap

* add component inner method

* change doc

* fix doc

* add origin

* update changelog

* try o avoid warnings in multigpu env with origin

* add more docs for Scaling Info

* add docs

* fix doc

* method directive is not valif

* origin docs

* fix lineskip

* update readme

* fix attributes

* improve component inner for euclidean manifold

* fix broadcasting

* fix typo

* fix signature

* black

* update black
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