Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement command line interface? #110

Open
fsaad opened this issue Mar 30, 2021 · 0 comments
Open

Implement command line interface? #110

fsaad opened this issue Mar 30, 2021 · 0 comments

Comments

@fsaad
Copy link
Collaborator

fsaad commented Mar 30, 2021

It could be useful to have a Python command-line interface for SPPL, i.e.,

$ pyhton -m sppl compile <model.py> # produces model.spe
$ python -m sppl logprob <model.spe> <expression>
$ python -m sppl condition <model.spe> <expression>
$ python -m sppl logpdf <model.spe> <dict>
$ python -m sppl constrain <model.spe> <dict>

One downside is that the SPE does not remain in memory, negating the benefits of computation reuse and closue under conditioning.

A parallel option is to provide a simple API for the Python shell in sppl.__init__.py, analogously to the one used in magics.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant