xiaozhenBoy / cudamat

Automatically exported from code.google.com/p/cudamat
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

error with rbm_cudamat example #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run "python rbm_cudamat.py"

What is the expected output? What do you see instead?

The expected output is the MSE and another statistic; instead, this happens:

tsa-mbp:~/Downloads/cudamat$ python rbm_cudamat.py 
Traceback (most recent call last):
  File "rbm_cudamat.py", line 11, in <module>
    util.load('mnist.dat', globals())
  File "/Users/tudorachim/Downloads/cudamat/util.py", line 14, in load
    var_list = pickle.load(fo)
  File "/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gzip.py", line 219, in read
    self._read(readsize)
  File "/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gzip.py", line 255, in _read
    self._read_gzip_header()
  File "/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/gzip.py", line 156, in _read_gzip_header
    raise IOError, 'Not a gzipped file'
IOError: Not a gzipped file

What version of the product are you using? On what operating system?

Latest. OSX snow leopard.

Please provide any additional information below.

I've run test_cudamat successfully, so the problem isn't there.

Original issue reported on code.google.com by T.Ac...@gmail.com on 18 Jul 2010 at 3:16

GoogleCodeExporter commented 9 years ago
Did you unzip the mnist.dat? 

When I download it (OS X 10.6 / Chrome), it is automatically renamed 
mnist.dat.gz

You shouldn't unzip it, just rename to mnist.dat

Original comment by zonpan...@gmail.com on 29 Jul 2010 at 3:16