danielward27 / flowjax

https://danielward27.github.io/flowjax/
MIT License
101 stars 14 forks source link

Add preprocess bijection #43

Closed danielward27 closed 2 years ago

danielward27 commented 2 years ago

Add option to provide a preprocess_bijection to train_flow. e.g. providing Invert(Affine(x.mean(axis=0), x.std(axis=0))) would perform standard scaling, and unscale the distribution by transforming the distribution with Invert(preprocess_bijection) after training.