Hello Everyone,
I wonder if anyone can help me with this issue because googling the
error message hasn't been very helpful. I've been using joblib to
compress and pickle script results (python dictionaries comprising of a
mixture of Pandas dataframes, text and python lists). I recently
upgraded from Scikit-learn 0.14 to 0.15.2, and Pandas from 0.14.1 to
0.15.1 and now all the joblib files I created prior to the upgrade are
now unreadable. Trying to open these files results in the error message
below:
#Load data
time_series = joblib.load('app_timeseries.joblib')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-5-df8da6c12b81> in <module>()
1 #Load data
----> 2 time_series = joblib.load('app_timeseries.joblib')
/usr/local/lib/python2.7/dist-packages/sklearn/externals/joblib/numpy_pickle.pyc
in load(filename, mmap_mode)
422
423 try:
--> 424 obj = unpickler.load()
425 finally:
426 if hasattr(unpickler, 'file_handle'):
/usr/lib/python2.7/pickle.pyc in load(self)
856 while 1:
857 key = read(1)
--> 858 dispatch[key](self)
859 except _Stop, stopinst:
860 return stopinst.value
/usr/lib/python2.7/pickle.pyc in load_reduce(self)
1131 args = stack.pop()
1132 func = stack[-1]
-> 1133 value = func(*args)
1134 stack[-1] = value
1135 dispatch[REDUCE] = load_reduce
TypeError: _reconstruct: First argument must be a sub-type of ndarray
I tried uninstalling Scikit-learn using "sudo pip uninstall
scikit-learn" and installing 0.14 again, but I still receive the same
error message. I also tried uninstalling joblib (since Scikit-learn 0.15
upgrades joblib to 0.8) and then installed versions 0.7.1, imported
joblib directly (via import joblib) not via sklearn.externals, and tried
again but I still receive the same error. Repeating this with joblib
0.7.0b didn't give a different result. Any help in resolving this issue
will be greatly appreciated! Thank you.
Biodun
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general