#mnist #idx #dataset #parser-loader

rust-mnist

A simple MNIST parser/loader written in rust

6 releases

0.2.0 Dec 26, 2022
0.1.4 Apr 6, 2020
0.1.3 Feb 1, 2020
0.1.2 Jan 19, 2020

#561 in Machine learning

Download history 1/week @ 2024-11-13 6/week @ 2024-11-20 14/week @ 2024-11-27 16/week @ 2024-12-04 37/week @ 2024-12-11 9/week @ 2024-12-18 7/week @ 2025-01-08 23/week @ 2025-01-15 7/week @ 2025-01-22 3/week @ 2025-01-29 24/week @ 2025-02-05 23/week @ 2025-02-12 7/week @ 2025-02-19 34/week @ 2025-02-26

89 downloads per month
Used in nevermind-neu

MIT license

12KB
205 lines

Rust-mnist is an MNIST dataset parser written in rust. It is simple and lightweight, not unreasonably slow and features some helpful error messages to get you started.

Using rust-mnist

See examples/perceptron.rs for a rudamentary demonstration.

You will need to download and extract the dataset from http://yann.lecun.org/exdb/mnist/index.html before use.

You may also want to add rust-mnist to your Cargo.toml, so that Cargo can manage it as a dependency for you:

[dependencies]
rust-mnist = "0.1"

Finally, you may want to use some logging implementation if you'd like to see info or debug information from rust-mnist. I'd recommend fern.

Please note that this is a new project, made for my own use, and may feature frequent breaking changes until it stabilizes. You can stay up to date on these changes by reading the CHANGELOG.md.


lib.rs:

A simple struct build by parsing the MNIST dataset.

Dependencies

~86KB