Open MarcoCode23 opened 5 years ago
@MarcoFilippi, it seems like this issue is created when neurokit is trying to load the sklearn model (saved using sklearn for python 3). I am not sure that I can fix it, as it seems tied to scikitlearn 😕 Maybe try updating your version of scikit-learn?
The goal is being able to load this file... Does it work if you try only that?
model = sklearn.externals.joblib.load('heartbeat_classification.model')
@DominiqueMakowski , I updated to scikit-learn-0.20.3 and I tried to load the file with the command you suggested! Now the message I received is the following:
Traceback (most recent call last): File "classes.py", line 3, in
model = sklearn.externals.joblib.load('./heartbeat_classification.model') File "/home/sisu/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 598, in load obj = _unpickle(fobj, filename, mmap_mode) File "/home/sisu/anaconda2/lib/python2.7/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 526, in _unpickle obj = unpickler.load() File "/home/sisu/anaconda2/lib/python2.7/pickle.py", line 864, in load dispatchkey File "/home/sisu/anaconda2/lib/python2.7/pickle.py", line 892, in load_proto raise ValueError, "unsupported pickle protocol: %d" % proto ValueError: unsupported pickle protocol: 3
Which is your scikitlearn version? I suppose I cannot avoid to jump to python3, since scikit-learn website says "Scikit-learn 0.21 will require Python 3.5 or newer."
Trying to run the template I got the following error message:
Is python 2.7 fully supported?