Open itsdfish opened 7 years ago
@fisherc2 If you could provide the chain that would be helpful.
@bdeonovic I could not upload the file here. I sent it to the email listed on your profile. Please let me know if that email is no longer active.
@fisherc2 Hi Chris, could you also send it to me?
@fisherc2 I was able to plot and draw your code. No errors (just some Gadfly warnings) must be an issue with your setup. What version of julia are you on and what version of Gadfly do you have? Also how did you try to plot. I did:
dat = deserialize(open("Downloads\\Samples_1124543.jls"))
p = plot(dat)
draw(p, fmt=:png, filename="test")
To confirm here are the first 2 files from draw:
@bdeonovic I am using Julia .6 and Gadfly .6.4. After seeing your code, I think I may have identified the source of the error. Here is the code that produces the error based on @goedman Stan walk through:
sim = read("Samples_1124543.jls",Chains)
p = plot(sim, [:trace, :mean, :density, :autocor], legend=true);
draw(p, ncol=2, filename= "test", fmt=:png,width=20inch,height=15inch)
However, if I remove argument [:trace, :mean, :density, :autocor]
from plot()
, I no longer get the error. Note that the code above only produces an error on some chains.
error seems to be with autocor. I will investigate further
Issue is one of your variables (divergent__) is all 0s for all iterations and chains. This caused the autocor function to produce all NaNs which caused ChainSummary to error out.
We should probably have an error catch somewhere in the plotting to catch this and handle it more elegantly. @brian-j-smith
Hi-
I've been using the mamba plotting functions with Stan.jl. Sometimes I receive the following error when I plot my chains using the plot() function:
I cannot share the code at this moment, but I would be willing to share the .jls file of the chain object if that is helpful.
Thanks,
-Chris