10BC0 MNT Update black to 23.3.0 (#26110) · scikit-learn/scikit-learn@893d5ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 893d5ac

Browse files
authored
MNT Update black to 23.3.0 (#26110)
1 parent 5b46d01 commit 893d5ac

File tree

183 files changed

+807
-757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+807
-757
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: end-of-file-fixer
77
- id: trailing-whitespace
88
- repo: https://github.com/psf/black
9-
rev: 22.3.0
9+
rev: 23.3.0
1010
hooks:
1111
- id: black
1212
- repo: https://github.com/pycqa/flake8

benchmarks/bench_20newsgroups.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
# Data
2929

3030
if __name__ == "__main__":
31-
3231
parser = argparse.ArgumentParser()
3332
parser.add_argument(
3433
"-e", "--estimators", nargs="+", required=True, choices=ESTIMATORS

benchmarks/bench_feature_expansions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535

3636
fig, axes = plt.subplots(nrows=len(densities), ncols=1, figsize=(8, 10))
3737
for density, ax in zip(densities, axes):
38-
3938
ax.plot(
4039
dimensionalities,
4140
csr_times[density] / trials,

benchmarks/bench_glm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
if __name__ == "__main__":
13-
1413
import matplotlib.pyplot as plt
1514

1615
n_iter = 40
@@ -22,7 +21,6 @@
2221
dimensions = 500 * np.arange(1, n_iter + 1)
2322

2423
for i in range(n_iter):
25-
2624
print("Iteration %s of %s" % (i, n_iter))
2725

2826
n_samples, n_features = 10 * i + 3, 10 * i + 3

benchmarks/bench_isolation_forest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def print_outlier_ratio(y):
5252

5353
# Loop over all datasets for fitting and scoring the estimator:
5454
for dat in datasets:
55-
5655
# Loading and vectorizing the data:
5756
print("====== %s ======" % dat)
5857
print("--- Fetching data...")

benchmarks/bench_kernel_pca_solvers_time_vs_n_components.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
r_time = np.empty((len(n_compo_range), n_iter)) * np.nan
8383
# loop
8484
for j, n_components in enumerate(n_compo_range):
85-
8685
n_components = int(n_components)
8786
print("Performing kPCA with n_components = %i" % n_components)
8887

benchmarks/bench_kernel_pca_solvers_time_vs_n_samples.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383

8484
# loop
8585
for j, n_samples in enumerate(n_samples_range):
86-
8786
n_samples = int(n_samples)
8887
print("Performing kPCA with n_samples = %i" % n_samples)
8988

benchmarks/bench_mnist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def load_data(dtype=np.float32, order="F"):
223223
)
224224
print("-" * 60)
225225
for name in sorted(args["classifiers"], key=error.get):
226-
227226
print(
228227
"{0: <23} {1: >10.2f}s {2: >10.2f}s {3: >12.4f}".format(
229228
name, train_time[name], test_time[name], error[name]

benchmarks/bench_online_ocsvm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def print_outlier_ratio(y):
6565
results_online = np.empty((len(datasets), n_axis + 5))
6666

6767
for dat, dataset_name in enumerate(datasets):
68-
6968
print(dataset_name)
7069

7170
# Loading datasets
@@ -133,7 +132,6 @@ def print_outlier_ratio(y):
133132
gamma = 1 / n_features # OCSVM default pa A2B2 rameter
134133

135134
for random_state in random_states:
136-
137135
print("random state: %s" % random_state)
138136

139137
X, y = shuffle(X, y, random_state=random_state)

benchmarks/bench_plot_fastkmeans.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
def compute_bench(samples_range, features_range):
11-
1211
it = 0
1312
results = defaultdict(lambda: [])
1413
chunk = 100

0 commit comments

Comments
 (0)
0