Skip to content

Commit

Permalink
assert_equal -> assert_array_almost_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Anael Bonneton authored and Anaël Beaugnon committed May 26, 2019
1 parent 1186ed6 commit a2953f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/tests/test_pipeline.py
Expand Up @@ -340,8 +340,8 @@ def test_pipeline_score_samples_pca_lof():
pca = PCA(svd_solver='full', n_components='mle', whiten=True)
pipe = Pipeline([('pca', pca), ('lof', clf)])
pipe.fit(X)
assert_equal(list(pipe.score_samples(X[:2])),
[-0.9564705258081416, -1.0371487183896932])
assert_array_almost_equal(pipe.score_samples(X[:2]),
[-0.9564705258081416, -1.0371487183896932])


def test_pipeline_methods_preprocessing_svm():
Expand Down

0 comments on commit a2953f5

Please sign in to comment.