possible bug in datasets\cifar10.py

10 views
Skip to first unread message

Hanan R

unread,
Mar 17, 2016, 12:59:04 PM3/17/16
to pylearn-dev

hi




tried running the examples, and encountered an error on line 85

x = numpy.zeros((lenx, self.img_size), dtype=dtype)

that the index cannot be of type float64


adding an int conversion to the previous line solve the problem


lenx = int(numpy.ceil((ntrain + nvalid) / 10000.) * 10000)
Reply all
Reply to author
Forward
0 new messages