DynamicPPL.jl
DynamicPPL.jl copied to clipboard
Pretty printing of models
Soss has a pretty string representation of a model that I think would be nice to have in DPPL. We can store a string in the Model struct with the string representation of the model.
Couldn't we just save and print the model definition of the user as an expression (if you actually intend to display what the user defined and not just a summary)? The expression would have more structure and could be analyzed and transformed better than a string.
An expression that's pretty enough is also good enough. The key is to not show large models entirely.