8000 Merge pull request #5629 from sieben/dict_litteral · scikit-learn/scikit-learn@ee53acc · GitHub
[go: up one dir, main page]

Skip to content

Commit ee53acc

Browse files
committed
Merge pull request #5629 from sieben/dict_litteral
Dictionary creation could be rewritten as litteral
2 parents 0b24027 + bd87003 commit ee53acc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sklearn/metrics/tests/test_pairwise.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ def test_pairwise_kernels(): # Test the pairwise_kernels helper function.
233233
assert_array_almost_equal(K1, K2)
234234
# Test with a callable function, with given keywords.
235235
metric = callable_rbf_kernel
236-
kwds = {}
237-
kwds['gamma'] = 0.1
236+
kwds = {'gamma': 0.1}
238237
K1 = pairwise_kernels(X, Y=Y, metric=metric, **kwds)
239238
K2 = rbf_kernel(X, Y=Y, **kwds)
240239
assert_array_almost_equal(K1, K2)

0 commit comments

Comments
 (0)
0