alashworth / test-issue-import

0 stars 0 forks source link

print_progress() should input / output the chain ID #63

Open alashworth opened 5 years ago

alashworth commented 5 years ago

Issue by bgoodri Saturday Mar 07, 2015 at 18:38 GMT Originally opened as https://github.com/stan-dev/stan/issues/1348


Currently, when you do chains in parallel the progress report does not look so good

Iteration:    1 / 2000 [  0%]  (Warmup)
Iteration:    1 / 2000 [  0%]  (Warmup)
Iteration:    1 / 2000 [  0%]  (Warmup)
Iteration:    1 / 2000 [  0%]  (Warmup)
Iteration:    1 / 2000 [  0%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)
Iteration:  500 / 2000 [ 25%]  (Warmup)

And it is even worse if the chains are not progressing at the same rate. It would be better if it said

Chain #, iteration: ...

but print_progress() currently does not have an argument to accept the chain ID.

alashworth commented 5 years ago

Comment by syclik Sunday Mar 15, 2015 at 04:04 GMT


@bgoodri, there's already a prefix argument for that purpose. I'm not sure if it's sufficient, but I'll try to create a pull request for RStan that'll fix it.

alashworth commented 5 years ago

Comment by bob-carpenter Thursday Nov 24, 2016 at 05:52 GMT


see #1166