Module Expr Str Import alias Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str Assert UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Call NameLoad keyword Str keyword TupleLoad Str Num Num Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareEq AttributeLoad NameLoad attr TupleLoad Num Num Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Num NameLoad Slice Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Num NameLoad Slice Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword TupleLoad Call NameLoad keyword TupleLoad Num Num keyword Num keyword TupleLoad Str Num Num Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore Call NameLoad keyword Str keyword TupleLoad Str Num Num Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Num NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword TupleLoad Call NameLoad keyword TupleLoad Num Num keyword Num keyword TupleLoad Str Num Num Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword TupleLoad Call NameLoad keyword TupleLoad Num Num keyword Num keyword TupleLoad Str Num Num Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword TupleLoad Call NameLoad keyword TupleLoad Num Num keyword Num keyword TupleLoad Str Num Num Str Str Assign NameStore Call AttributeLoad NameLoad attr Assert Call AttributeLoad NameLoad attr CompareEq NameLoad NameLoad decorator_list decorator_list
N/A N/A Test for cifar100 dataset module N/A unittest N/A numpy np pylearn2.datasets.cifar100 CIFAR100 pylearn2.space Conv2DSpace pylearn2.testing.skip skip_if_no_data TestCIFAR100 N/A N/A unittest TestCase N/A N/A 

    Parameters
    ----------
    none
     setUp N/A N/A self N/A N/A N/A Load the train and test sets; check for nan and inf. N/A N/A skip_if_no_data N/A N/A self train_set N/A CIFAR100 which_set train N/A N/A self test_set N/A CIFAR100 which_set test N/A N/A N/A N/A np any N/A N/A np isnan N/A N/A self train_set X N/A N/A N/A N/A np any N/A N/A np isinf N/A N/A self train_set X N/A N/A N/A N/A np any N/A N/A np isnan N/A N/A self test_set X N/A N/A N/A N/A np any N/A N/A np isinf N/A N/A self test_set X N/A test_adjust_for_viewer N/A N/A self N/A N/A N/A Test method N/A N/A N/A N/A self train_set adjust_for_viewer N/A N/A self train_set X N/A test_adjust_to_be_viewed_with N/A N/A self N/A N/A N/A Test method on train set N/A N/A N/A N/A self train_set adjust_to_be_viewed_with N/A N/A self train_set X N/A N/A np ones N/A N/A N/A self train_set X shape N/A test_get_test_set N/A N/A self N/A N/A N/A 
        Check that the train and test sets'
        get_test_set methods return same thing.
         N/A train_test_set N/A N/A N/A self train_set get_test_set N/A test_test_set N/A N/A N/A self test_set get_test_set N/A N/A N/A np all N/A N/A train_test_set X N/A test_test_set X N/A N/A N/A np all N/A N/A train_test_set X N/A N/A self test_set X N/A test_topo N/A N/A self N/A N/A N/A Tests that a topological batch has 4 dimensions N/A topo N/A N/A N/A self train_set get_batch_topo 1 N/A N/A N/A topo ndim 4 N/A test_topo_c01b N/A N/A self N/A N/A N/A 
        Tests that a topological batch with axes ('c',0,1,'b')
        can be dimshuffled back to match the standard ('b',0,1,'c')
        format.
         N/A batch_size 100 N/A c01b_test N/A CIFAR100 which_set test axes N/A c 0 1 b N/A c01b_X N/A N/A c01b_test X N/A N/A 0 batch_size N/A N/A c01b N/A N/A c01b_test get_topological_view c01b_X N/A N/A N/A c01b shape N/A 3 32 32 batch_size N/A b01c N/A N/A c01b transpose 3 1 2 0 N/A b01c_X N/A N/A N/A self test_set X N/A N/A 0 batch_size N/A N/A N/A N/A c01b_X shape N/A b01c_X shape N/A N/A N/A np all N/A c01b_X b01c_X N/A b01c_direct N/A N/A N/A self test_set get_topological_view b01c_X N/A N/A N/A b01c_direct shape N/A b01c shape N/A N/A N/A np all N/A b01c_direct b01c N/A test_iterator N/A N/A self N/A N/A N/A 
        Tests that batches returned by an iterator with topological
        data_specs are the same as the ones returned by calling
        get_topological_view on the dataset with the corresponding order
         N/A batch_size 100 N/A b01c_X N/A N/A N/A self test_set X N/A N/A 0 batch_size N/A N/A b01c_topo N/A N/A N/A self test_set get_topological_view b01c_X N/A b01c_b01c_it N/A N/A N/A self test_set iterator mode sequential batch_size batch_size data_specs N/A N/A Conv2DSpace shape N/A 32 32 num_channels 3 axes N/A b 0 1 c features N/A b01c_b01c N/A N/A b01c_b01c_it next N/A N/A N/A np all N/A b01c_topo b01c_b01c N/A c01b_test N/A CIFAR100 which_set test axes N/A c 0 1 b N/A c01b_X N/A N/A c01b_test X N/A N/A 0 batch_size N/A N/A c01b_topo N/A N/A c01b_test get_topological_view c01b_X N/A c01b_c01b_it N/A N/A c01b_test iterator mode sequential batch_size batch_size data_specs N/A N/A Conv2DSpace shape N/A 32 32 num_channels 3 axes N/A c 0 1 b features N/A c01b_c01b N/A N/A c01b_c01b_it next N/A N/A N/A np all N/A c01b_topo c01b_c01b N/A b01c_c01b_it N/A N/A N/A self test_set iterator mode sequential batch_size batch_size data_specs N/A N/A Conv2DSpace shape N/A 32 32 num_channels 3 axes N/A c 0 1 b features N/A b01c_c01b N/A N/A b01c_c01b_it next N/A N/A N/A np all N/A b01c_c01b c01b_c01b N/A c01b_b01c_it N/A N/A c01b_test iterator mode sequential batch_size batch_size data_specs N/A N/A Conv2DSpace shape N/A 32 32 num_channels 3 axes N/A b 0 1 c features N/A c01b_b01c N/A N/A c01b_b01c_it next N/A N/A N/A np all N/A c01b_b01c b01c_b01c N/A N/A