Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created June 28, 2015 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/413188f5a4edbc254efe to your computer and use it in GitHub Desktop.
Save MartinThoma/413188f5a4edbc254efe to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "multilabel.py", line 55, in <module>
nn_example()
File "multilabel.py", line 49, in nn_example
net1.fit(feature_vectors, labels)
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 321, in fit
self.train_loop(X, y)
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 328, in train_loop
X, y, self.eval_size)
File "/usr/local/lib/python2.7/dist-packages/nolearn-0.6adev-py2.7.egg/nolearn/lasagne/base.py", line 448, in train_test_split
kf = StratifiedKFold(y, round(1. / eval_size))
File "/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py", line 434, in __init__
label_test_folds = test_folds[y == label]
IndexError: too many indices for array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment