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

Geomm fails with newer version of pymanopt #16

Open
murthyrudra opened this issue Aug 28, 2020 · 5 comments
Open

Geomm fails with newer version of pymanopt #16

murthyrudra opened this issue Aug 28, 2020 · 5 comments

Comments

@murthyrudra
Copy link

Hi,
running geomm with the latest version of pymanopt gives the following error

Traceback (most recent call last):
  File "geomm.py", line 16, in <module>
    from pymanopt.manifolds import Stiefel, Product, PositiveDefinite, Euclidean
ImportError: cannot import name 'PositiveDefinite'
@anoopkunchukuttan
Copy link
Owner

Rudra,
We will check and get back.
Anoop.

@agoel00
Copy link

agoel00 commented Sep 1, 2020

You can replace PositiveDefinite with SymmetricPositiveDefinite everywhere in the script.
I'm guessing the authors changed the API a bit in the new version.
Source

@murthyrudra
Copy link
Author

Hi, It is not restricted to change in class names from PositiveDefinite with SymmetricPositiveDefinite . The signature of the class Problem is also changed.
Old constructor used in GeoMM
problem = Problem(manifold=manifold, cost=cost, arg=[U1,U2,B], verbosity=3)
New constructor in the pymanopt library
def __init__(self, manifold, cost, egrad=None, ehess=None, grad=None, hess=None, precon=None, verbosity=2):

@agoel00
Copy link

agoel00 commented Sep 11, 2020

Yep, you are right!

pip install pymanopt==0.2.3
pip install scipy==0.18.1

This should work

@Aishwarya-Gurjar
Copy link

Hi,
Is anyone able to solve the problem with the constructor of the class Problem?

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

No branches or pull requests

4 participants