Skip to content

Commit 4ab4fba

Browse files
kaichengamueller
authored andcommitted
G is upper-triangular, so G.T should be lower-triangular.
1 parent 3023053 commit 4ab4fba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sklearn/gaussian_process/gaussian_process.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ def predict(self, X, eval_MSE=False, batch_size=None):
474474
if self.beta0 is None:
475475
# Universal Kriging
476476
u = linalg.solve_triangular(self.G.T,
477-
np.dot(self.Ft.T, rt) - f.T)
477+
np.dot(self.Ft.T, rt) - f.T,
478+
lower=True)
478479
else:
479480
# Ordinary Kriging
480481
u = np.zeros((n_targets, n_eval))

0 commit comments

Comments
 (0)