Hi,
Although the notebook ran successfully yesterday, after restarting my computer I tried re-running the notebook and received the error below in the cell that runs the make_figs() function:
elastregr = make_figs( 'Elastic net', model=subelast, #search_cval=search_cval, parameters=parameters, # uncomment these lines #plot_cval=LeaveOneOut(), # to rerun the analysis from scratch #lcurve_cval=lcurve_cval, # instead of loading results from disk njobs=njobs)
I there anyway around this that you can recommend?
Thanks,
Avital
UnicodeDecodeError Traceback (most recent call last)
~\Anaconda3\lib\site-packages\joblib\numpy_pickle.py in _unpickle(fobj, filename, mmap_mode)
525 try:
--> 526 obj = unpickler.load()
527 if unpickler.compat_mode:
~\Anaconda3\lib\pickle.py in load(self)
1084 assert isinstance(key, bytes_types)
-> 1085 dispatchkey[0]
1086 except _Stop as stopinst:
~\Anaconda3\lib\pickle.py in load_short_binstring(self)
1260 data = self.read(len)
-> 1261 self.append(self._decode_string(data))
1262 dispatch[SHORT_BINSTRING[0]] = load_short_binstring
~\Anaconda3\lib\pickle.py in _decode_string(self, value)
1200 else:
-> 1201 return value.decode(self.encoding, self.errors)
1202
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9a in position 0: ordinal not in range(128)
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
in
12 #plot_cval=LeaveOneOut(), # to rerun the analysis from scratch
13 #lcurve_cval=lcurve_cval, # instead of loading results from disk
---> 14 njobs=njobs)
in make_figs(name, model, search_cval, parameters, plot_cval, lcurve_cval, njobs)
14 clf = model
15 else: # load up a previously saved model
---> 16 clf = load('fig2_bestmodel_{}.pkl'.format(name))
17
18 print("Using ",clf)
~\Anaconda3\lib\site-packages\joblib\numpy_pickle.py in load(filename, mmap_mode)
596 return load_compatibility(fobj)
597
--> 598 obj = _unpickle(fobj, filename, mmap_mode)
599
600 return obj
~\Anaconda3\lib\site-packages\joblib\numpy_pickle.py in _unpickle(fobj, filename, mmap_mode)
539 'This feature is not supported by joblib.')
540 new_exc.cause = exc
--> 541 raise new_exc
542 # Reraise exception with Python 2
543 raise
ValueError: You may be trying to read with python 3 a joblib pickle generated with python 2. This feature is not supported by joblib.