bayeslite icon indicating copy to clipboard operation
bayeslite copied to clipboard

SIMULATE f(x) FROM p LIMIT n

Open riastradh-probcomp opened this issue 8 years ago • 1 comments

  • 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.

riastradh-probcomp avatar Feb 17 '17 01:02 riastradh-probcomp

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.

fsaad avatar Nov 19 '17 23:11 fsaad