-
Notifications
You must be signed in to change notification settings - Fork 34
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
Can two parametrizations be used in the same tensor? #42
Comments
Alas, these parametrisations are not compositional as-is, but it shouldn't be too difficult to implement your own. Line 6 in ba38d40
On the other hand, sl(n) is implemented in a similar way, but tweaking the function that's used to define the eigenvalues (we normalise them so that their product is one):Lines 31 to 42 in ba38d40
As such, you can inherit from PSD and implement your own class where you pass in a normalised function like we do in SL(n) to the parent class. You'll also need to implement the method Please reach out if there is anything that's not clear :) |
Hello,
I am wondering whether two parametrizations can be used on a same tensor. In particular, I want to parametrize a matrix to be both positive definite and in the SL group.
In the example below, I create a class with a matrix that should be both PSD and SLN:
However, I get the following error when I initialize the class:
I think that the parametrized tensor gets re-initialized by SLN, and so it is no longer PSD, leading to the error. Is there some way to do something as intended here with geotorch?
The text was updated successfully, but these errors were encountered: