Skip to content

Commit 8e94ed7

Browse files
committed
use already defined variable
1 parent 84b8f40 commit 8e94ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: pymc3/distributions/bart.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def predict(self, X_new):
176176
pred = np.zeros((len(trees), num_observations))
177177
np.random.randint(len(trees))
178178
for draw, trees_to_sum in enumerate(trees):
179-
new_Y = np.zeros(X_new.shape[0])
179+
new_Y = np.zeros(num_observations)
180180
for tree in trees_to_sum:
181181
new_Y += [tree.predict_out_of_sample(x) for x in X_new]
182182
pred[draw] = new_Y

0 commit comments

Comments
 (0)