We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b8f40 commit 8e94ed7Copy full SHA for 8e94ed7
pymc3/distributions/bart.py
@@ -176,7 +176,7 @@ def predict(self, X_new):
176
pred = np.zeros((len(trees), num_observations))
177
np.random.randint(len(trees))
178
for draw, trees_to_sum in enumerate(trees):
179
- new_Y = np.zeros(X_new.shape[0])
+ new_Y = np.zeros(num_observations)
180
for tree in trees_to_sum:
181
new_Y += [tree.predict_out_of_sample(x) for x in X_new]
182
pred[draw] = new_Y
0 commit comments