Skip to content

Commit

Permalink
more flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
392781 committed Feb 24, 2023
1 parent 6be6714 commit 3566713
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Analyzing files using flake8 with options
run: |
flake8 . --max-line-length=100 --show-source --statistics --ignore=F401
flake8 . --max-line-length=100 --show-source --statistics --ignore=F401,W504
ci:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions skntk/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ def __call__(self, X, Z=None, eval_gradient=False):
K_prime = 2 * self.bias**2 * products * inverted_sums
K_prime = np.expand_dims(K_prime, -1)
return scalar * K, scalar * \
(K_prime - ((2 * self.bias**2) / (self.bias**2 + 1))
* np.expand_dims(K, -1))
(K_prime - ((2 * self.bias**2) / (self.bias**2 + 1)) *
np.expand_dims(K, -1))
else:
return scalar * K, np.empty((X.shape[0], X.shape[0], 0))
else:
Expand Down

0 comments on commit 3566713

Please sign in to comment.