Module Expr Str Import alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad With Call NameLoad Str Str NameStore body Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Num keyword NameLoad Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Str keyword Num keyword Num keyword Num keyword Num Assign NameStore Call NameLoad keyword Num keyword Num keyword NameLoad keyword ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad NameLoad
N/A N/A 
Tests scripts in the DBM folder
 N/A os N/A pylearn2.scripts.dbm.show_negative_chains negative_chains N/A pylearn2.scripts.dbm.show_reconstructions show_reconstruct N/A pylearn2.scripts.dbm.show_samples show_samples N/A pylearn2.scripts.dbm.top_filters top_filters pylearn2.config yaml_parse pylearn2.models.dbm.layer BinaryVector BinaryVectorMaxPool pylearn2.datasets.mnist MNIST pylearn2.models.dbm.dbm DBM nose.tools with_setup pylearn2.datasets control pylearn2.utils serial theano function theano.compat.six.moves cPickle setup N/A N/A N/A N/A N/A 
    Create pickle file with a simple model.
     N/A N/A N/A control push_load_data False N/A N/A open dbm.pkl wb f N/A N/A dataset N/A MNIST which_set train start 0 stop 100 binarize True N/A vis_layer N/A BinaryVector nvis 784 bias_from_marginals dataset N/A hid_layer1 N/A BinaryVectorMaxPool layer_name h1 pool_size 1 irange 0.05 init_bias -2.0 detector_layer_dim 50 N/A hid_layer2 N/A BinaryVectorMaxPool layer_name h2 pool_size 1 irange 0.05 init_bias -2.0 detector_layer_dim 10 N/A model N/A DBM batch_size 20 niter 2 visible_layer vis_layer hidden_layers N/A hid_layer1 hid_layer2 N/A N/A model dataset_yaml_src 
!obj:pylearn2.datasets.binarizer.Binarizer {
    raw: !obj:pylearn2.datasets.mnist.MNIST {
        which_set: "train",
        start: 0,
        stop: 100
    }
}
 N/A N/A model layer_to_chains N/A N/A model make_layer_to_state 1 N/A N/A N/A cPickle dump model f protocol N/A cPickle HIGHEST_PROTOCOL N/A teardown N/A N/A N/A N/A N/A Delete the pickle file created for the tests N/A N/A N/A N/A os path isfile dbm.pkl N/A N/A N/A N/A os remove dbm.pkl N/A N/A N/A control pop_load_data N/A test_show_negative_chains N/A N/A N/A N/A N/A Test the show_negative_chains script main function N/A N/A N/A negative_chains show_negative_chains dbm.pkl N/A N/A with_setup setup teardown test_show_reconstructions N/A N/A N/A N/A N/A Test the reconstruction update_viewer function N/A rows 5 N/A cols 10 N/A m N/A rows cols N/A model N/A N/A show_reconstruct load_model dbm.pkl m N/A dataset N/A N/A show_reconstruct load_dataset N/A model dataset_yaml_src use_test_set n N/A batch N/A N/A N/A N/A model visible_layer space make_theano_batch N/A reconstruction N/A N/A model reconstruct batch N/A recons_func N/A function N/A batch reconstruction N/A vis_batch N/A N/A dataset get_batch_topo m N/A patch_viewer N/A N/A show_reconstruct init_viewer dataset rows cols vis_batch N/A N/A N/A show_reconstruct update_viewer dataset batch rows cols patch_viewer recons_func vis_batch N/A N/A with_setup setup teardown test_show_samples N/A N/A N/A N/A N/A Test the samples update_viewer function N/A rows 10 N/A cols 10 N/A m N/A rows cols N/A model N/A N/A show_samples load_model dbm.pkl m N/A dataset N/A N/A yaml_parse load N/A model dataset_yaml_src N/A samples_viewer N/A N/A show_samples init_viewer dataset rows cols N/A vis_batch N/A N/A dataset get_batch_topo m N/A N/A N/A show_samples update_viewer dataset samples_viewer vis_batch rows cols N/A N/A with_setup setup teardown test_top_filters N/A N/A N/A N/A N/A Test the top_filters viewer functions N/A model N/A N/A serial load dbm.pkl N/A N/A layer_1 layer_2 N/A N/A model hidden_layers N/A 0 2 N/A W1 N/A N/A layer_1 get_weights N/A W2 N/A N/A layer_2 get_weights N/A N/A N/A top_filters get_mat_product_viewer W1 W2 N/A dataset_yaml_src N/A model dataset_yaml_src N/A dataset N/A N/A yaml_parse load dataset_yaml_src N/A imgs N/A N/A dataset get_weights_view N/A W1 T N/A N/A N/A top_filters get_connections_viewer imgs W1 W2 N/A N/A with_setup setup teardown