Module Import alias Import alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareNotIn NameLoad TupleLoad Num Num body Raise Call NameLoad Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str ListLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad keyword Str NameStore body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Num Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Num Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr ListLoad Num Num NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore TupleLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad TupleLoad Str Str NameLoad Expr Call NameLoad NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad TupleLoad Str Str Str Str body Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad TupleLoad Str Str body Assign AttributeStore SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index Str attr Index NameLoad attr NameLoad Return TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword TupleLoad Num Num keyword Str Return NameLoad decorator_list
N/A N/A os N/A h5py scipy.io loadmat fuel.converters.base fill_hdf5_file MissingInputFiles convert_silhouettes N/A N/A size directory output_directory output_file N/A None N/A N/A  Convert the CalTech 101 Silhouettes Datasets.

    Parameters
    ----------
    size : {16, 28}
        Convert either the 16x16 or 28x28 sized version of the dataset.
    directory : str
        Directory in which the required input files reside.
    output_file : str
        Where to save the converted dataset.

     N/A N/A size N/A 16 28 N/A N/A N/A ValueError size must be 16 or 28 N/A N/A output_file None N/A N/A output_file N/A N/A caltech101_silhouettes{}.hdf5 format size N/A output_file N/A N/A N/A os path join output_directory output_file N/A input_file N/A N/A caltech101_silhouettes_{}_split1.mat format size N/A input_file N/A N/A N/A os path join directory input_file N/A N/A N/A N/A N/A os path isfile input_file N/A N/A N/A MissingInputFiles Required files missing N/A input_file N/A N/A N/A h5py File output_file mode w h5file N/A N/A mat N/A loadmat input_file N/A train_features N/A N/A N/A mat N/A train_data reshape N/A -1 1 size size N/A train_targets N/A mat N/A train_labels N/A valid_features N/A N/A N/A mat N/A val_data reshape N/A -1 1 size size N/A valid_targets N/A mat N/A val_labels N/A test_features N/A N/A N/A mat N/A test_data reshape N/A -1 1 size size N/A test_targets N/A mat N/A test_labels N/A data N/A N/A train features train_features N/A train targets train_targets N/A valid features valid_features N/A valid targets valid_targets N/A test features test_features N/A test targets test_targets N/A N/A fill_hdf5_file h5file data N/A N/A i label N/A enumerate N/A batch channel height width N/A N/A N/A N/A N/A N/A h5file N/A features dims N/A i label label N/A N/A i label N/A enumerate N/A batch index N/A N/A N/A N/A N/A N/A h5file N/A targets dims N/A i label label N/A N/A output_file N/A fill_subparser N/A N/A subparser N/A N/A N/A Sets up a subparser to convert CalTech101 Silhouettes Database files.

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

     N/A N/A N/A subparser add_argument size type int choices N/A 16 28 help height/width of the datapoints N/A convert_silhouettes N/A