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

Chapter 2 -- tfp.bijectors.AffineScalar is deprecated #541

Open
joaoppadua opened this issue Mar 2, 2022 · 0 comments
Open

Chapter 2 -- tfp.bijectors.AffineScalar is deprecated #541

joaoppadua opened this issue Mar 2, 2022 · 0 comments

Comments

@joaoppadua
Copy link

joaoppadua commented Mar 2, 2022

Executing the code for the model in the Challenger Space Shuttle Disaster example, it returns an AttributeError, roughly "tfp.bijectors has no attribute AffineScalar".
After an unusually long search in the internet, I found that, as per this source (https://github.com/tensorflow/probability/releases), this attribute is indeed deprecated. The release said to use tfp.Shift(shift) or tfp.Scale(scale), instead. Since the code called for a multiplying factor, I substituted the line for tp.bijectors.Scale(100.).
It worked fine.

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

1 participant