We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a0a91 commit 046f7e8Copy full SHA for 046f7e8
sklearn/externals/joblib/numpy_pickle.py
@@ -107,7 +107,8 @@ def read(self, unpickler):
107
"Reconstruct the array"
108
filename = os.path.join(unpickler._dirname, self.filename)
109
# Load the array from the disk
110
- if unpickler.np.__version__ >= '1.3':
+ np_ver = [int(x) for x in unpickler.np.__version__.split('.', 2)[:2]]
111
+ if np_ver >= [1, 3]:
112
array = unpickler.np.load(filename,
113
mmap_mode=unpickler.mmap_mode)
114
else:
0 commit comments