vision

Crates.iovision
lib.rsvision
version0.0.2
sourcesrc
created_at2018-02-27 17:49:40.4278
updated_at2018-02-27 18:04:50.44172
descriptionComputer vision benchmarking datasets
homepage
repositoryhttps://github.com/AtheMathmo/vision-rs
max_upload_size
id53069
size26,298
geohash-publishers (github:georust:geohash-publishers)

documentation

https://docs.rs/vision

README

Vision

This library provides access to common machine learning benchmarking datasets.

The library currently includes:

Things are currently very basic.

Usage

Each dataset can be downloaded and processed using a Builder class. The builder is customizable in each case.

extern crate vision;

use vision::mnist::{MNISTBuilder};

fn main() {
    let builder = MNISTBuilder::new();
    let mnist = builder.data_home("MNIST")
                       .verbose()
                       .get_data().unwrap();
    println!("{}", mnist.train_imgs.len());
}

The MNIST object returned by the builder contains four public fields, train_imgs, train_labels, test_images and test_labels. The label fields are Vec<u8> types and the images are Vec<Vec<u8>>, each entry in the outermost Vec corresponds to a single datapoint.

Further preprocessing should be carried out by the user.

Commit count: 3

cargo fmt