rpudlWriteLMDB {rpud}R Documentation

Export Supported Data Sets to LMDB

Description

Export CIFAR and MNIST data sets to LMDB.

Usage

rpudlWriteLMDB(
    data.source,
    prefix = "rpudl",
    ...,
    log.level = 1
)

Arguments

data.source

An S3 object that inherits the class rpudl.data.source

prefix

Prefix of the training and testing LMDB databases. For the default prefix "rpudl", the training database would be "rpudl_train_lmdb", and the testing database would be "rpudl_test_lmdb". The directories must not exists beforehand. They will be located in the same path folder as the data set.

...

further arguments to be passed to or from methods

log.level

level of the method output (0 = silent, 1 = basic output, 2 = detailed output)

Author(s)

Chi Yau
chi.yau@r-tutor.com

See Also

rpudlCreateDataSource

Examples

## Not run: 
ds <- rpudlCreateDataSource(
        data.format="mnist",
        data.dir="data/mnist"
)

rpudlWriteLMDB(ds, prefix="mnist-official-data")

## End(Not run)

[Package rpud version 0.7.2 Index]