-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Deprecate CorrLCholeskyTransform
in favor of upstream CorrCholeskyTransform
#3199
Conversation
CorrLCholeskyTransform
in favor of upstreamCorrCholeskyTransform
CorrLCholeskyTransform
in favor of upstream CorrCholeskyTransform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good after addressing a couple comments 👍
@@ -171,7 +165,6 @@ def iterated(repeats, base_fn, *args, **kwargs): | |||
"ConditionalRadial", | |||
"ConditionalSpline", | |||
"ConditionalSplineAutoregressive", | |||
"CorrLCholeskyTransform", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the new CorrCholeskyTransform apper in this list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be added along with other PyTorch transforms below:
__all__.extend(torch_transforms)
@@ -32,7 +32,7 @@ | |||
from .block_autoregressive import BlockAutoregressive, block_autoregressive | |||
from .cholesky import ( | |||
CholeskyTransform, | |||
CorrLCholeskyTransform, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd lean towards preserving the old import so as to avoid breaking existing code, but I'll defer to your judgement if you think we should delete both. (I think of "deprecation" as meaning "it still works but we no longer recommend it", whereas removing from __init__.py
would be a truly breaking change)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it makes sense to leave the old import.
|
||
from .. import constraints | ||
|
||
|
||
def _vector_to_l_cholesky(z): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woo hoo less math to maintain 📉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing @fritzo . Addressed your comments.
@@ -32,7 +32,7 @@ | |||
from .block_autoregressive import BlockAutoregressive, block_autoregressive | |||
from .cholesky import ( | |||
CholeskyTransform, | |||
CorrLCholeskyTransform, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it makes sense to leave the old import.
@@ -171,7 +165,6 @@ def iterated(repeats, base_fn, *args, **kwargs): | |||
"ConditionalRadial", | |||
"ConditionalSpline", | |||
"ConditionalSplineAutoregressive", | |||
"CorrLCholeskyTransform", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be added along with other PyTorch transforms below:
__all__.extend(torch_transforms)
Hi @fritzo. Can you have another look at this PR? |
Closes #3181