bayeslite
bayeslite copied to clipboard
SIMULATE f(x) FROM p LIMIT n
- Add SimulateExp AST node like SimulateModelsExp.
- Adapt parse.py to allow it and produce SimulateExp.
- Implement expand_simulate like expand_simulate_models in macro.py.
- Use expand_simulate like expand_simulate_models in compiler.py.
For those looking for this feature, a simple workaround is to create a table of simulations, and use sql select to apply f to the samples.