Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant