-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Find the right boundary between runtimes and programs (#13)
The boundary between programs (sampling algorithms) and runtimes (executors) was not very clear. I remove any dependence on the model from the program and responsibilities are now clear. Most of the initialization has been transferred to the runtime. I also improved the performance of the creation of initial states.
- Loading branch information
Showing
5 changed files
with
232 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from mcx.model import model | ||
from mcx.model import sample_forward, seed | ||
from mcx.execution import sample, generate | ||
from mcx.hmc import HMC | ||
from mcx.inference.hmc import HMC | ||
|
||
__all__ = [ | ||
"model", | ||
"seed", | ||
"HMC", | ||
"sample_forward", | ||
"HMC", | ||
"sample", | ||
"generate", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.