Skip to content

Commit

Permalink
Merge pull request #237 from jamesmyatt/bugfix/joblib_import
Browse files Browse the repository at this point in the history
Fix deprecation warning with scikit-learn 0.21
  • Loading branch information
lmcinnes authored May 16, 2019
2 parents b381667 + 3b96697 commit 7041502
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
from sklearn.preprocessing import normalize
from sklearn.neighbors import KDTree

from sklearn.externals import joblib
try:
import joblib
except ImportError:
# sklearn.externals.joblib is deprecated in 0.21, will be removed in 0.23
from sklearn.externals import joblib

import numpy as np
import scipy.sparse
Expand Down

0 comments on commit 7041502

Please sign in to comment.