Skip to content

Commit abe70aa

Browse files
committed
ensure p_d is an array
1 parent 9086263 commit abe70aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc_bart/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def identity(x):
254254
)
255255

256256
new_x = fake_X[:, var]
257-
p_d = func(y_pred)
257+
p_d = func(np.array(y_pred))
258258

259259
for s_i in range(shape):
260260
if centered:

0 commit comments

Comments
 (0)