File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -197,12 +197,12 @@ def astep(self, q0):
197
197
198
198
for _ in range (max_treedepth ):
199
199
direction = logbern (np .log (0.5 )) * 2 - 1
200
- diverging , turning = tree .extend (direction )
200
+ diverging_info , turning = tree .extend (direction )
201
201
q , q_grad = tree .proposal .q , tree .proposal .q_grad
202
202
203
- if diverging or turning :
204
- if diverging :
205
- self .report ._add_divergence (self .tune , * diverging )
203
+ if diverging_info or turning :
204
+ if diverging_info :
205
+ self .report ._add_divergence (self .tune , * diverging_info )
206
206
break
207
207
208
208
w = 1. / (self .m + self .t0 )
@@ -223,7 +223,7 @@ def astep(self, q0):
223
223
'step_size' : step_size ,
224
224
'tune' : self .tune ,
225
225
'step_size_bar' : np .exp (self .log_step_size_bar ),
226
- 'diverging' : diverging ,
226
+ 'diverging' : bool ( diverging_info ) ,
227
227
}
228
228
229
229
stats .update (tree .stats ())
You can’t perform that action at this time.
0 commit comments