Dense

Crates.io lib.rs.io docs

An encoder/decoder to/from dense files.

A file format simpler and denser than MNIST, a dense file is binary file of sequential training examples and nothing else (example->label->example->label->etc.).

MNIST Testing data

Format | Size | Size on disk --- | --- | --- MNIST | 7,850,024 | 7,856,128 Dense | 7,850,000 | 7,852,032

Example

```rust use ndarray::{Array2,array};

let data: Array2 = array![[0, 0], [1, 0], [0, 1], [1, 1]]; let labels: Array2 = array![[0], [1], [1], [0]];

dense::write("dense_reader",&data,&labels).unwrap();

let (readdata,readlabels) = dense::read::("dense_reader",2).unwrap();

asserteq!(readdata,data); asserteq!(readlabels,labels); ```