Module ImportFrom alias alias alias ImportFrom alias Import alias identifier Import alias Import alias Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Expr Call NameLoad Str NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call NameLoad Str Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad Str Assign NameStore ListLoad Str Str Expr Call NameLoad Str With Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Num BinOpAdd BinOpMult Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice Num attr TupleLoad Num NameLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Index Num attr TupleLoad Num NameLoad Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Slice Num attr TupleLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Num Index Num attr TupleLoad Num Num Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Slice Num attr TupleLoad Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr ListLoad Num Num Num Num Num Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice Num Index Num attr TupleLoad Num Num Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Expr Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Assign NameStore Num Assign NameStore Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Slice Num attr TupleLoad Num NameLoad Num Num Num attr ListLoad Num Num Num Num Num Assign NameStore BinOpDiv BinOpSub NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad ExtSlice Slice NameLoad Index Num attr TupleLoad Num NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Str
N/A __future__ division print_function unicode_literals six.moves.urllib.request urlretrieve N/A numpy np N/A tarfile N/A h5py N/A os N/A bs_data_dir N/A N/A N/A os environ get BRAINSTORM_DATA_DIR . N/A url http://www.cs.toronto.edu/~kriz/cifar-100-binary.tar.gz N/A cifar100_file N/A N/A N/A os path join bs_data_dir cifar-100-binary.tar.gz N/A hdf_file N/A N/A N/A os path join bs_data_dir CIFAR-100.hdf5 N/A N/A print Using data directory: bs_data_dir N/A N/A N/A N/A N/A os path exists cifar100_file N/A N/A N/A print Downloading CIFAR-100 data ... N/A N/A urlretrieve url cifar100_file N/A N/A print Done. N/A archive_paths N/A cifar-100-binary/train.bin cifar-100-binary/test.bin N/A N/A print Extracting CIFAR-100 data ... N/A N/A N/A tarfile open cifar100_file f N/A N/A res N/A N/A fn archive_paths N/A N/A buf N/A N/A N/A N/A f extractfile fn read N/A tmp N/A N/A np fromstring buf dtype N/A np uint8 N/A tmp N/A N/A tmp reshape -1 N/A N/A 1024 3 2 N/A N/A N/A res append tmp N/A N/A print Done. N/A ds N/A N/A np concatenate res N/A nr_tr 40000 N/A x_tr N/A N/A N/A ds N/A N/A nr_tr N/A 2 reshape N/A 1 nr_tr 3 32 32 N/A x_tr N/A N/A x_tr transpose N/A 0 1 3 4 2 N/A y_tr N/A N/A N/A ds N/A N/A nr_tr N/A 1 reshape N/A 1 nr_tr 1 N/A x_va N/A N/A N/A ds N/A N/A 40000 50000 N/A 2 reshape N/A 1 10000 3 32 32 N/A x_va N/A N/A x_va transpose N/A 0 1 3 4 2 N/A y_va N/A N/A N/A ds N/A N/A 40000 50000 N/A 1 reshape N/A 1 10000 1 N/A x_te N/A N/A N/A ds N/A N/A 50000 N/A 2 reshape N/A 1 10000 3 32 32 N/A x_te N/A N/A x_te transpose N/A 0 1 3 4 2 N/A y_te N/A N/A N/A ds N/A N/A 50000 N/A 1 reshape N/A 1 10000 1 N/A tr_mean N/A N/A N/A N/A x_tr squeeze mean axis 0 N/A tr_std N/A N/A N/A N/A x_tr squeeze std axis 0 N/A x_tr N/A N/A x_tr tr_mean tr_std N/A x_va N/A N/A x_va tr_mean tr_std N/A x_te N/A N/A x_te tr_mean tr_std N/A N/A print Creating CIFAR-100 HDF5 dataset ... N/A f N/A N/A h5py File hdf_file w N/A description 
The CIFAR-100 dataset is a labeled subset of the 80 million tiny images
dataset. It consists of 60000 32x32 colour images in 100 classes, with 600
images per class. There are 50000 training images and 10000 test images.

The dataset was obtained from the link:
http://www.cs.toronto.edu/~kriz/cifar-100-binary.tar.gz

Attributes
==========

description: This description.

mean: The pixel-wise mean of the first 40000 training set images.

std: The pixel-wise standard deviation of the first 40000 training set images.

std:

Variants
========

normalized_full: Contains 'training' and 'test' sets. Image data has been
normalized to have zero mean and unit standard deviation.

normalized_split: Contains 'training' (first 40K out of the full training
set), 'validation' (remaining 10K out of the full training set) and
'test' sets. Image data has been normalized to have zero mean and unit
standard deviation.

 N/A N/A N/A f attrs N/A description description N/A N/A N/A f attrs N/A mean tr_mean N/A N/A N/A f attrs N/A std tr_std N/A variant N/A N/A f create_group normalized_split N/A group N/A N/A variant create_group training N/A N/A N/A group create_dataset name default data x_tr compression gzip N/A N/A N/A group create_dataset name targets data y_tr compression gzip N/A group N/A N/A variant create_group validation N/A N/A N/A group create_dataset name default data x_va compression gzip N/A N/A N/A group create_dataset name targets data y_va compression gzip N/A group N/A N/A variant create_group test N/A N/A N/A group create_dataset name default data x_te compression gzip N/A N/A N/A group create_dataset name targets data y_te compression gzip N/A nr_tr 50000 N/A x_tr N/A N/A N/A N/A N/A ds N/A N/A nr_tr N/A 2 reshape N/A 1 nr_tr 3 32 32 transpose N/A 0 1 3 4 2 N/A x_tr N/A N/A x_tr tr_mean tr_std N/A y_tr N/A N/A N/A ds N/A N/A nr_tr N/A 1 reshape N/A 1 nr_tr 1 N/A variant N/A N/A f create_group normalized_full N/A group N/A N/A variant create_group training N/A N/A N/A group create_dataset name default data x_tr compression gzip N/A N/A N/A group create_dataset name targets data y_tr compression gzip N/A group N/A N/A variant create_group test N/A N/A N/A group create_dataset name default data x_te compression gzip N/A N/A N/A group create_dataset name targets data y_te compression gzip N/A N/A N/A f close N/A N/A print Done.