Skip to content

Commit

Permalink
import assert_array_almost_equal from numpy
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl authored Jan 6, 2021
1 parent b1ba6d0 commit f076653
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/one_hot_encoder_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,8 @@
"""

import numpy as np
from numpy.testing import assert_array_almost_equal
import scipy.sparse

try:
# deprecated as of 0.22
from sklearn.utils._testing import assert_array_almost_equal
except ImportError:
from sklearn.utils.testing import assert_array_almost_equal

from sklearn.datasets import load_iris, load_boston
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import make_pipeline
Expand Down

0 comments on commit f076653

Please sign in to comment.