SlipGURU Dipartimento di Informatica e Scienze dell'Informazione Università Degli Studi di Genova

Data-handling functions (paddle.data)

This module implements some functions used to handle data.

paddle.data.checkBSD(path)

Cheks that the is the root directory of the standard distribution of the Berkeley segmentation dataset, as downloaded from http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/BSDS300-images.tgz It returns the absolute paths of the test and training directories.

paddle.data.draw_sample(path, W, N)

Draws randomly N patches with size WxW from the images in path. It returns an ndarray with shape (W*W, N).

paddle.data.draw_patches(traindir, W, N)
paddle.data.loadMNIST(path)

Loads the MNIST dataset ... http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/BSDS300-images.tgz It returns the absolute paths of the test and training directories.