You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We rely on Node's custom inspect method mechanism to pretty print distributions, but it looks like this stopped working since around Node v12. The most noticeable effect of this is that when running a program such as Infer(flip) at the command line, the output will be something like {"probs":[0.5,0.5],"support":[false,true]} rather than:
Marginal:
false : 0.5
true : 0.5
It doesn't appear as though this machinery has been removed from Node entirely, so it might be possible to update our code to work with recent releases. (We'd probably also want to support Node < v12 too if possible.) Alternatively, we might be able to workaround this by manually calling inspect() when present on any object returned as the result of a program or passed to display(...).
The text was updated successfully, but these errors were encountered:
null-a
changed the title
Pretty printing of distibutions doesn't work as expected under Node 12
Pretty printing of distributions doesn't work as expected under Node 12
Sep 26, 2019
We rely on Node's custom inspect method mechanism to pretty print distributions, but it looks like this stopped working since around Node v12. The most noticeable effect of this is that when running a program such as
Infer(flip)
at the command line, the output will be something like{"probs":[0.5,0.5],"support":[false,true]}
rather than:It doesn't appear as though this machinery has been removed from Node entirely, so it might be possible to update our code to work with recent releases. (We'd probably also want to support Node < v12 too if possible.) Alternatively, we might be able to workaround this by manually calling
inspect()
when present on any object returned as the result of a program or passed todisplay(...)
.The text was updated successfully, but these errors were encountered: