2 releases
0.1.1 | Dec 25, 2019 |
---|---|
0.1.0 | Dec 24, 2019 |
#7 in #mnist
8KB
94 lines
mnist-extractor
This crate is a simple utility to download and extract MNIST dataset.
As it is not very optimized, it is not recommended in production but only during testing.
How to use
To use it, do :
extern crate mnist-extractor;
use mnist-extractor::*;
let (test_lbl, test_img, train_lbl, train_img) = get_all();
// use datas the way you want
The returned datas are ndarray::Array2<f64>
arrays. Each row of the arrays are either hot_ones
encoded labels (10
numbers long) or flat_encoded
images (784
numbers long).
If you want to clean the downloaded datas, use :
mnist-extractor::clean_all_extracted();
or
mnist-extractor::();
Contribution
Contributions are welcome, although this crate is really not intended to be used a lot. It is used in the neural network project spitz during its tests.
Dependencies
~24MB
~485K SLoC