Skip to content

Commit 6006d1d

Browse files
authored
plot_depedence fix bug when passing func for discrete variables (#66)
1 parent ab0adfb commit 6006d1d

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
@@ -232,7 +232,7 @@ def plot_dependence(
232232
new_y.append(np.array(y_pred).T)
233233

234234
if func is not None:
235-
new_y = func(new_y)
235+
new_y = [func(nyi) for nyi in new_y]
236236
shape = 1
237237
if new_y[0].ndim == 3:
238238
shape = new_y[0].shape[0]

0 commit comments

Comments
 (0)