Skip to content

Fix black issue of CircleCI #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sklearn_extra/kernel_methods/_eigenpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def _setup(self, feat, max_components, mG, alpha):
]

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

def _initialize_params(self, X, Y, random_state):
Expand Down Expand Up @@ -234,7 +234,7 @@ def _initialize_params(self, X, Y, random_state):
n_components = max(1, n_components)

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