google-deepmind / google-deepmind/distrax

Feature Request: implement conditional flows

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
651
Forks
48
Avg merge
21h 4m
Merged PRs (30d)
3

Description

Distrax is a nicely designed library and I would love to use it, but it does not support conditional flows.

Generalizing the library to support conditional flows should not be difficult, this author has achieved this by subclassing the classes in Distrax and overriding a few methods: https://github.com/smsharma/jax-conditional-flows
Most of the code just deals with adding a new `context` argument to the existing interfaces and passing that down towards the elemental building blocks.

Maintaining such a code is difficult, however, considering how fast the JAX ecosystem evolves currently.

It would be great if conditional flows were first-class citizen in Distrax. This would enlarge the phase-space of applications considerably.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.