8000 fix flake8 error · scikit-learn/scikit-learn@2a37685 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2a37685

Browse files
committed
fix flake8 error
1 parent dd34652 commit 2a37685

File tree

1 file changed

+2
-1
lines changed
  • sklearn/gaussian_process

1 file changed

+2
-1
lines changed

sklearn/gaussian_process/gpr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ def predict(self, X, return_std=False, return_cov=False):
332332

333333
# Compute variance of predictive distribution
334334
y_var = self.kernel_.diag(X)
335-
y_var -= np.einsum("ij,ij->i", np.dot(K_trans, self._K_inv), K_trans)
335+
y_var -= np.einsum("ij,ij->i",
336+
np.dot(K_trans, self._K_inv), K_trans)
336337

337338
# Check if any of the variances is negative because of
338339
# numerical issues. If yes: set the variance to 0.

0 commit comments

Comments
 (0)
0