Package pylearn :: Package datasets :: Module shapeset1
[hide private]

Module shapeset1

source code

Routines to load/access Shapeset1

Functions [hide private]
 
_head(path, n) source code
 
head_train(n=10000)
Load the first Shapeset1 training examples.
source code
 
head_valid(n=5000)
Load the first Shapeset1 validation examples.
source code
 
head_test(n=5000)
Load the first Shapeset1 testing examples.
source code
 
train_valid_test(ntrain=10000, nvalid=5000, ntest=5000) source code

Imports: os, numpy, AMat, data_root, Dataset


Function Details [hide private]

head_train(n=10000)

source code 

Load the first Shapeset1 training examples.

Returns two matrices: x, y. x has N rows of 1024 columns. Each row of x represents the 32x32 grey-scale pixels in raster order. y is a vector of N integers between 0 and 2. Each element y[i] is the label of the i'th row of x.

head_valid(n=5000)

source code 

Load the first Shapeset1 validation examples.

Returns two matrices: x, y. x has N rows of 1024 columns. Each row of x represents the 32x32 grey-scale pixels in raster order. y is a vector of N integers between 0 and 2. Each element y[i] is the label of the i'th row of x.

head_test(n=5000)

source code 

Load the first Shapeset1 testing examples.

Returns two matrices: x, y. x has N rows of 1024 columns. Each row of x represents the 32x32 grey-scale pixels in raster order. y is a vector of N integers between 0 and 2. Each element y[i] is the label of the i'th row of x.