Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str TryFinally body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str TryFinally body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword AttributeLoad NameLoad attr Assign NameStore TupleLoad TupleLoad Str Str NameLoad TupleLoad Str Str Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad Str Str Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad Str Str NameLoad TupleLoad Str Str Call AttributeLoad NameLoad attr TupleLoad Num Num TupleLoad Str Str Call AttributeLoad NameLoad attr TupleLoad Num Num Expr Call NameLoad NameLoad NameLoad Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index Num attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad NameLoad decorator_list Call NameLoad keyword ListLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list
N/A N/A os N/A tarfile N/A h5py N/A numpy N/A six six.moves cPickle fuel.converters.base fill_hdf5_file check_exists N/A DISTRIBUTION_FILE cifar-100-python.tar.gz convert_cifar100 N/A N/A directory output_directory output_filename N/A cifar100.hdf5 N/A N/A Converts the CIFAR-100 dataset to HDF5.

    Converts the CIFAR-100 dataset to an HDF5 dataset compatible with
    :class:`fuel.datasets.CIFAR100`. The converted dataset is saved as
    'cifar100.hdf5'.

    This method assumes the existence of the following file:
    `cifar-100-python.tar.gz`

    Parameters
    ----------
    directory : str
        Directory in which the required input files reside.
    output_directory : str
        Directory in which to save the converted dataset.
    output_filename : str, optional
        Name of the saved dataset. Defaults to 'cifar100.hdf5'.

    Returns
    -------
    output_paths : tuple of str
        Single-element tuple containing the path to the converted dataset.

     N/A output_path N/A N/A N/A os path join output_directory output_filename N/A h5file N/A N/A h5py File output_path mode w N/A input_file N/A N/A N/A os path join directory cifar-100-python.tar.gz N/A tar_file N/A N/A tarfile open input_file r:gz N/A file N/A N/A tar_file extractfile cifar-100-python/train N/A N/A N/A N/A six PY3 N/A N/A train N/A N/A cPickle load file encoding latin1 N/A N/A train N/A N/A cPickle load file N/A N/A N/A N/A file close N/A train_features N/A N/A N/A train N/A data reshape N/A N/A N/A train N/A data shape N/A 0 3 32 32 N/A train_coarse_labels N/A N/A numpy array N/A train N/A coarse_labels dtype N/A numpy uint8 N/A train_fine_labels N/A N/A numpy array N/A train N/A fine_labels dtype N/A numpy uint8 N/A file N/A N/A tar_file extractfile cifar-100-python/test N/A N/A N/A N/A six PY3 N/A N/A test N/A N/A cPickle load file encoding latin1 N/A N/A test N/A N/A cPickle load file N/A N/A N/A N/A file close N/A test_features N/A N/A N/A test N/A data reshape N/A N/A N/A test N/A data shape N/A 0 3 32 32 N/A test_coarse_labels N/A N/A numpy array N/A test N/A coarse_labels dtype N/A numpy uint8 N/A test_fine_labels N/A N/A numpy array N/A test N/A fine_labels dtype N/A numpy uint8 N/A data N/A N/A train features train_features N/A train coarse_labels N/A N/A train_coarse_labels reshape N/A -1 1 N/A train fine_labels N/A N/A train_fine_labels reshape N/A -1 1 N/A test features test_features N/A test coarse_labels N/A N/A test_coarse_labels reshape N/A -1 1 N/A test fine_labels N/A N/A test_fine_labels reshape N/A -1 1 N/A N/A fill_hdf5_file h5file data N/A N/A N/A N/A N/A h5file N/A features dims N/A 0 label batch N/A N/A N/A N/A N/A h5file N/A features dims N/A 1 label channel N/A N/A N/A N/A N/A h5file N/A features dims N/A 2 label height N/A N/A N/A N/A N/A h5file N/A features dims N/A 3 label width N/A N/A N/A N/A N/A h5file N/A coarse_labels dims N/A 0 label batch N/A N/A N/A N/A N/A h5file N/A coarse_labels dims N/A 1 label index N/A N/A N/A N/A N/A h5file N/A fine_labels dims N/A 0 label batch N/A N/A N/A N/A N/A h5file N/A fine_labels dims N/A 1 label index N/A N/A N/A h5file flush N/A N/A N/A h5file close N/A N/A output_path N/A N/A check_exists required_files N/A DISTRIBUTION_FILE fill_subparser N/A N/A subparser N/A N/A N/A Sets up a subparser to convert the CIFAR100 dataset files.

    Parameters
    ----------
    subparser : :class:`argparse.ArgumentParser`
        Subparser handling the `cifar100` command.

     N/A convert_cifar100 N/A