You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong computation of scale in standardize_transform when using "zuko" backend #1091
Describe the bug
Using the zuko backend when using standardize_transform gives a MonotonicAffineTransform. The scale is passed as $\frac{1}{\mathrm{std}(batch_x)}$. However, the MonotonicAffineTransform computes $\mathrm{exp(scale)} x + \mathrm{shift}$.
To Reproduce
Please add a minimal code example that reproduces the problem:
This bug is fixed in #1099 - note, however, that for Zuko, the correct syntax of the last line would be: print(transform()(x_batch).std(dim=0)). This now returns tensor([1., 1.]) for me after the latest push in #1099
Activity
gmoss13 commentedon Mar 24, 2024
This bug is fixed in #1099 - note, however, that for Zuko, the correct syntax of the last line would be:
print(transform()(x_batch).std(dim=0)). This now returnstensor([1., 1.])for me after the latest push in #1099