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
This is difficult to demonstrate, but I believe the value of ratio_divergent_transitions_during_adaption printed during sampling when progress=true is currently incorrect.
The behaviour I've seen is:
During adaptation, numerical errors are encountered causing ratio_divergent_transitions_during_adaption to increase
By the end of adaptation, the numerical errors stop
Sampling continues after adaptation and ratio_divergent_transitions stays zero.
ratio_divergent_transitions_during_adaption starts to drop (even though adaptation is now finished!) until it reaches a lower value, eg 50% lower if there are equal numbers of samples during and after adaptation.
I couldn't find the right location in the code, but I believe that ratio_divergent_transitions_during_adaption might be calculating the ratio using the total number of samples so far, and not stopping updating after adaptation completes.
The text was updated successfully, but these errors were encountered:
percentage_divergent_transitions = num_divergent_transitions / I
percentage_divergent_transitions_during_adaption =
num_divergent_transitions_during_adaption / i
should instead be:
percentage_divergent_transitions = num_divergent_transitions / I
percentage_divergent_transitions_during_adaption =
num_divergent_transitions_during_adaption /min(i, n_adapts)
This is difficult to demonstrate, but I believe the value of
ratio_divergent_transitions_during_adaption
printed during sampling whenprogress=true
is currently incorrect.The behaviour I've seen is:
ratio_divergent_transitions_during_adaption
to increaseratio_divergent_transitions
stays zero.ratio_divergent_transitions_during_adaption
starts to drop (even though adaptation is now finished!) until it reaches a lower value, eg 50% lower if there are equal numbers of samples during and after adaptation.I couldn't find the right location in the code, but I believe that
ratio_divergent_transitions_during_adaption
might be calculating the ratio using the total number of samples so far, and not stopping updating after adaptation completes.The text was updated successfully, but these errors were encountered: