Replies: 1 comment 2 replies
-
Did this go anywhere? It sounds very sensible to me. I'm new to Blackjax and I looked for a structure like this when trying to figure out where the relevant bits of code live. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The problem
As discussed in #441 there are a few problems with the current organisation of the repository:
kernels.py
is getting quite big; contributions to unrelated algorithms have to make substantial modifications to the same big file. The construction could be generalized per algorithm type.MCMCAlgorithm
) are defined at the top level of the library when they don't generalize past their related module (here/mcmc
)Proposal
We should have one
type.py
per class of algorithm. The/mcmc/types.py
module would contain, for instance:We should have on
alias.py
per module. Working with algorithms of the same type means we can generalize the alias construction, and it thus makes sens to regroup them in the same file.The structure would thus look like
We should aim to remove the
/optimizer
folder, either by upstreaming what is not imported from JaxOpt or Optax, or leaving the algorithms where they are needed.Beta Was this translation helpful? Give feedback.
All reactions