Skip to content

Commit 674c3fe

Browse files
authored
MNT Fix black issue of CircleCI (#142)
1 parent cb70ef0 commit 674c3fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn_extra/kernel_methods/_eigenpro.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def _setup(self, feat, max_components, mG, alpha):
180180
]
181181

182182
max_S = E[0].astype(np.float32)
183-
kxx = 1 - np.sum(Lambda ** 2, axis=1) * n_subsamples
183+
kxx = 1 - np.sum(Lambda**2, axis=1) * n_subsamples
184184
return max_S / scale, np.max(kxx), D, Lambda
185185

186186
def _initialize_params(self, X, Y, random_state):
@@ -234,7 +234,7 @@ def _initialize_params(self, X, Y, random_state):
234234
n_components = max(1, n_components)
235235

236236
# Approximate amount of memory that we want to use
237-
mem_bytes = 0.1 * 1024 ** 3
237+
mem_bytes = 0.1 * 1024**3
238238
# Memory used with a certain sample size
239239
mem_usages = (d + n_label + 2 * np.arange(sample_size)) * n * 4
240240
mG = np.int32(np.sum(mem_usages < mem_bytes))

0 commit comments

Comments
 (0)