lisa-lab/pylearn2

make pickle data target

Closed this issue · 2 comments

Hello
I try to make pickle file with data and target.
One of my feature is consist of [data, target].
data is 2x33x40 numpy array, and target is 1 numpy array.
But when I tried to run code with this pickle file, I got error in target shuffle part.
numpy.random.shuffle(data)
numpy.random.shuffle(target)

File "mtrand.pyx", line 4424, in mtrand.RandomState.shuffle (numpy/random/mtrand/mtrand.c:21254)
TypeError: len() of unsized object

I think this error occured because target length and data length is different.
How can I change target array??

TNick commented

A traceback would be useful, at least for me.
There seem to be a lot of reports regarding that error that may not be related to pylearn2.

  • Please use the mailing list (pylearn-users) for support requests, not tickets
  • This is not related to Pylearn2 at all