Skip to content

Remove instructions about downloading MNIST data #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,7 @@ cmake .. -DCMAKE_BUILD_TYPE=debug

#### Running tests with CMake

Before running the tests, link the the data/ directory to the current directory:

```
ln -s ../data
```

The MNIST dataset which comes with the code as a tarball must be unpacked first.
See [MNIST training example](#mnist-training-example) on how to do that.
Once the MNIST dataset is unpacked and the data/ directory is linked in your
CMake build/ directory, run
Type:

```
ctest
Expand Down Expand Up @@ -284,15 +275,7 @@ broadcast. It can be any positive number not greater than `num_images()`.

### MNIST training example

The MNIST data is included with the repo and you will have to unpack it first:

```
cd data/mnist
tar xzvf mnist.tar.gz
cd -
```

The complete program:
Here's the complete program:

```fortran
program example_mnist
Expand Down Expand Up @@ -352,7 +335,10 @@ program example_mnist
end program example_mnist
```

The program will report the accuracy after each epoch:
The MNIST data will be automatically downloaded at the first attempt at loading it
with the `load_mnist` subroutine.

Running the program will report the accuracy after each epoch:

```
$ ./example_mnist
Expand Down