rpudlFindTrainingDataMean {rpud}R Documentation

Mean Input Values of the Training Data

Description

Finding mean input values of the training data in an RPUDL data source. The result is to be saved to an output file.

Usage

rpudlFindTrainingDataMean(
    data.source,
    filename = "data.mean",
    ...,
    log.level = 1
    )

Arguments

data.source

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

filename

Name of the output file, which is 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="lmdb",
        data.dir=file.path(data.dir, "cifar10"),
        train.data="samples_train_lmdb",
        test.data="samples_test_lmdb",
        data.shape=c(32, 32),
        data.channels=3
)

rpudlFindTrainingDataMean(ds, filename="samples.mean")

## End(Not run)

[Package rpud version 0.7.0 Index]