From 35667132d3a5fb5dd414a05f2a7463a063bb7d81 Mon Sep 17 00:00:00 2001 From: 392781 Date: Fri, 24 Feb 2023 13:23:15 -0800 Subject: [PATCH] more flake8 fixes --- .github/workflows/CI.yml | 2 +- skntk/kernel.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 20d62fb..4cce9ad 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: diff --git a/skntk/kernel.py b/skntk/kernel.py index 65b54a2..6d75356 100644 --- a/skntk/kernel.py +++ b/skntk/kernel.py @@ -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: