brian-lau / MatlabStan

Matlab interface to Stan, a package for Bayesian inference
BSD 3-Clause "New" or "Revised" License
79 stars 47 forks source link

All Stan processes finished, but it is still working #44

Open Peshkin opened 6 years ago

Peshkin commented 6 years ago

fit.check returns "All Stan processes finished."

fit.stop returns Stan is already finished.

but fit.peek gives "Stan is still working. You can either: 1) Use the peek method to get partial samples 2) Come back later, or 3) Attach a listener to the StanFit object."

how is that possible ?

brian-lau commented 6 years ago

Ah, the peek method is quite untested. I suspect the message is incorrect. I imagine you actually have the correct number of samples in your StanFit output?

Peshkin commented 6 years ago

I can't tell because when I run sim = extract(fit); it tells me the Stan is still working

Peshkin commented 6 years ago

Even if I just type fit I get the same message

mdnunez commented 6 years ago

I have the same problem after 1 chain crashed early (possibly due to memory issues) but the other two chains finished.