Skip to content

Commit aaa6611

Browse files
committed
COSMIT pep8
1 parent 4f90efc commit aaa6611

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/gaussian_process/plot_gp_regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
np.random.seed(1)
4141

42+
4243
def f(x):
4344
"""The function to predict."""
4445
return x * np.sin(x)

sklearn/feature_extraction/tests/test_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def test_unicode_decode_error():
123123
# decode_error default to strict, so this should fail
124124
# First, encode (as bytes) a unicode string.
125125
text = u"J'ai mang\xe9 du kangourou ce midi, c'\xe9tait pas tr\xeas bon."
126-
text_bytes = text.encode('utf-8')
126+
text_bytes = text.encode('utf-8')
127127
# Then let the Analyzer try to decode it as ascii. It should fail,
128128
# because we have given it an incorrect charset.
129129
wa = WordNGramAnalyzer(min_n=1, max_n=2, stop_words=None, charset='ascii')

sklearn/svm/tests/test_svm.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,9 @@ def test_decision_function():
279279
dec = np.dot(X, clf.coef_.T) + clf.intercept_
280280
prediction = clf.predict(X)
281281
assert_array_almost_equal(dec, clf.decision_function(X))
282-
assert_array_almost_equal(prediction, clf.label_[(clf.decision_function(X) >
283-
0).astype(np.int).ravel()])
284-
expected = np.array([[-1. ], [-0.66666667], [-1. ],
285-
[ 0.66666667], [ 1. ], [ 1. ]])
282+
assert_array_almost_equal(prediction, clf.label_[(clf.decision_function(X)
283+
> 0).astype(np.int).ravel()])
284+
expected = np.array([[-1.], [-0.66], [-1.], [0.66], [1.], [1.]])
286285
assert_array_almost_equal(clf.decision_function(X), expected)
287286

288287

0 commit comments

Comments
 (0)