I'm getting a memory error when trying to run the chapter 6 code. I have 16gb of RAM...any suggestions on getting it to run?
Below is the traceback. Congrats on the recent post doc!
runfile('C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6/chapter6.py', wdir='C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6')
feature None
- strategy one-vs-one
- train
Traceback (most recent call last):
File "<ipython-input-1-ddd8a3664d51>", line 1, in <module>
runfile('C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6/chapter6.py', wdir='C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6')
File "C:\Users\nesiusm\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
execfile(filename, namespace)
File "C:\Users\nesiusm\AppData\Local\Continuum\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)
File "C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6/chapter6.py", line 86, in <module>
main()
File "C:/Users/nesiusm/Documents/opencv-python-blueprints-master/chapter6/chapter6.py", line 53, in main
MCS.fit(X_train, y_train)
File "classifiers.py", line 250, in fit
X_train_id = X_train[data_id, :]
MemoryError