https://github.com/jonathanwoollett-light/dense
An encoder/decoder to/from dense files.
https://github.com/jonathanwoollett-light/dense
mnist
Last synced: 3 days ago
JSON representation
An encoder/decoder to/from dense files.
- Host: GitHub
- URL: https://github.com/jonathanwoollett-light/dense
- Owner: JonathanWoollett-Light
- Created: 2020-11-22T11:24:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-06T16:20:30.000Z (almost 4 years ago)
- Last Synced: 2025-05-27T19:49:05.076Z (22 days ago)
- Topics: mnist
- Language: Rust
- Homepage:
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dense
[](https://crates.io/crates/dense)
[](https://lib.rs/crates/dense)
[](https://docs.rs/dense)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 (read_data,read_labels) = dense::read::("dense_reader",2).unwrap();
assert_eq!(read_data,data);
assert_eq!(read_labels,labels);
```