meetvora/mlp-classifier

Can't execute the loader.py to get the result

Opened this issue · 2 comments

I tried running the 'loader.py' file to get the final result. However, when I set the path = './mnist/', and run this file, it does not give out any result. The error message is there is no path directory, but I don't understand why it could not find the two files train-labels-idx1-ubyte and train-images-idx1-ubyte.

Can you please show me how to execute the code to get the final result? It's a fantastic code btw.

So I tried this: NeuralNetMLP(load_mnist('mnist')), but then it gave me this error message: TypeError: only integer scalar arrays can be converted to a scalar index.

Did you try running your code before you put it on here?

I don't understand what your loader.py is doing. Basically, when I loaded it with load_mnist('mnist'), I got the result:

`(array([[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
...,
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0],
[0, 0, 0, ..., 0, 0, 0]], dtype=uint8),

array([5, 0, 4, ..., 5, 6, 8], dtype=uint8))`

Why the first array is full of 0, and why the 2nd array is like what it is? Sorry I could not get this.