When I am using nolearn to implement multi-label classification, I got this error:
'Bad input argument to theano function with name "/Users/lm/Documents/anaconda/lib/python2.7/site-packages/nolearn/lasagne/base.py:391" at index 1(0-based)', 'TensorType(float32, matrix) cannot store a value of dtype int64 without risking loss of precision. If you do not mind this loss, you can: 1) explicitly cast your data to float32, or 2) set "allow_input_downcast=True" when calling "function".', array([[0, 0, 0, ..., 0, 0, 1],
In my case all I did was change the
floatX
flag (under[global]
) to on the .theanorc file from :to:
Notice that the 64 at the end was replaced by the 32.