DynamicPPL.jl icon indicating copy to clipboard operation
DynamicPPL.jl copied to clipboard

Pretty printing of models

Open mohdibntarek opened this issue 5 years ago • 2 comments

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.

mohdibntarek avatar May 03 '20 06:05 mohdibntarek

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.

devmotion avatar May 03 '20 08:05 devmotion

An expression that's pretty enough is also good enough. The key is to not show large models entirely.

mohdibntarek avatar May 03 '20 11:05 mohdibntarek