8000 STY Removes trailing comma in lists for nicer black formatting (#20627) · rth/scikit-learn@44c40b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 44c40b3

Browse files
authored
STY Removes trailing comma in lists for nicer black formatting (scikit-learn#20627)
1 parent 01a28e9 commit 44c40b3

File tree

3 files changed

+26
-424
lines changed

3 files changed

+26
-424
lines changed

sklearn/svm/tests/test_sparse.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@
2424
[
2525
[0, 0, 0],
2626
[1, 1, 1],
27-
[
28-
2,
29-
0,
30-
0,
31-
],
27+
[2, 0, 0],
3228
[0, 0, 2],
3329
[3, 3, 3],
3430
]

sklearn/tests/test_discriminant_analysis.py

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,7 @@
2929

3030
# Degenerate data with only one feature (still should be separable)
3131
X1 = np.array(
32-
[
33-
[
34-
-2,
35-
],
36-
[
37-
-1,
38-
],
39-
[
40-
-1,
41-
],
42-
[
43-
1,
44-
],
45-
[
46-
1,
47-
],
48-
[
49-
2,
50-
],
51-
],
32+
[[-2], [-1], [-1], [1], [1], [2]],
5233
dtype="f",
5334
)
5435

@@ -60,37 +41,7 @@
6041
y7 = np.array([1, 2, 3, 2, 3, 1, 2, 3, 1])
6142

6243
# Degenerate data with 1 feature (still should be separable)
63-
X7 = np.array(
64-
[
65-
[
66-
-3,
67-
],
68-
[
69-
-2,
70-
],
71-
[
72-
-1,
73-
],
74-
[
75-
-1,
76-
],
77-
[
78-
0,
79-
],
80-
[
81-
1,
82-
],
83-
[
84-
1,
85-
],
86-
[
87-
2,
88-
],
89-
[
90-
3,
91-
],
92-
]
93-
)
44+
X7 = np.array([[-3], [-2], [-1], [-1], [0], [1], [1], [2], [3]])
9445

9546
# Data that has zero variance in one dimension and needs regularization
9647
X2 = np.array(

0 commit comments

Comments
 (0)
0