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

Skip to content

Commit cef05eb

Browse files
committed
fix flake8 warnings
1 parent e97c0ba commit cef05eb

File tree

1 file changed

+3
-2
lines changed
  • sklearn/gaussian_process

1 file changed

+3
-2
lines changed

sklearn/gaussian_process/gpr.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,11 @@ def predict(self, X, return_std=False, return_cov=False):
321321
return y_mean, y_cov
322322
elif return_std:
323323
# cache result of K_inv computation
324-
if not hasattr(self,'_K_inv'):
324+
if not hasattr(self, '_K_inv'):
325325
# compute inverse K_inv of K based on its Cholesky
326326
# decomposition L and its inverse L_inv
327-
L_inv = solve_triangular(self.L_.T,np.eye(self.L_.shape[0]))
327+
L_inv = solve_triangular(self.L_.T,
328+
np.eye(self.L_.shape[0]))
328329
self._K_inv = L_inv.dot(L_inv.T)
329330

330331
# Compute variance of predictive distribution

0 commit comments

Comments
 (0)
0