Module Expr Str Import alias Import alias identifier Import alias Import alias identifier ImportFrom alias ImportFrom alias alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str FunctionDef arguments args defaults body Assign NameStore Call NameLoad Num Num Str Str Assert Call NameLoad NameLoad Str Str Assert Call NameLoad NameLoad Str Str decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr BinOpDiv Num BinOpAdd Num Call AttributeLoad NameLoad attr BinOpSub UnaryOpUSub NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Num Num keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assert Call NameLoad Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword Num keyword Num keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Num keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Num Num keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad ListLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore BinOpMult Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num Num attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad Num Num keyword Str keyword Str keyword NameLoad Assign NameStore Call NameLoad keyword Num Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Num attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assert UnaryOpNot Call NameLoad Call NameLoad NameLoad NameLoad decorator_list
N/A N/A 
Tests for the pylearn2 autoencoder module.
 N/A os.path N/A numpy np N/A theano N/A theano.tensor tensor theano config pylearn2.models.autoencoder Autoencoder HigherOrderContractiveAutoencoder DeepComposedAutoencoder UntiedAutoencoder StackedDenoisingAutoencoder pylearn2.corruption BinomialCorruptor pylearn2.config yaml_parse theano.tensor.basic _allclose N/A yaml_dir_path N/A N/A N/A os path join N/A N/A N/A os path abspath N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ config test_autoencoder_properly_initialized N/A N/A N/A N/A N/A ae N/A Autoencoder 1 1 sigmoid linear N/A N/A hasattr ae fn Autoencoder didn't call Block.__init__ N/A N/A hasattr ae extensions Autoencoder didn't call Model.__init__ N/A test_autoencoder_logistic_linear_tied N/A N/A N/A N/A N/A data N/A N/A N/A N/A N/A np random randn 10 5 astype N/A config floatX N/A ae N/A Autoencoder 5 7 act_enc sigmoid act_dec linear tied_weights True N/A w N/A N/A N/A ae weights get_value N/A N/A N/A N/A ae hidbias set_value N/A N/A N/A N/A N/A np random randn 7 astype N/A config floatX N/A hb N/A N/A N/A ae hidbias get_value N/A N/A N/A N/A ae visbias set_value N/A N/A N/A N/A N/A np random randn 5 astype N/A config floatX N/A vb N/A N/A N/A ae visbias get_value N/A d N/A N/A tensor matrix N/A result N/A N/A N/A np dot N/A 1.0 N/A 1 N/A N/A np exp N/A N/A hb N/A N/A np dot data w N/A w T vb N/A ff N/A N/A theano function N/A d N/A N/A ae reconstruct d N/A N/A _allclose N/A ff data result N/A test_autoencoder_tanh_cos_untied N/A N/A N/A N/A N/A data N/A N/A N/A N/A N/A np random randn 10 5 astype N/A config floatX N/A ae N/A Autoencoder 5 7 act_enc tanh act_dec cos tied_weights False N/A w N/A N/A N/A ae weights get_value N/A w_prime N/A N/A N/A ae w_prime get_value N/A N/A N/A N/A ae hidbias set_value N/A N/A N/A N/A N/A np random randn 7 astype N/A config floatX N/A hb N/A N/A N/A ae hidbias get_value N/A N/A N/A N/A ae visbias set_value N/A N/A N/A N/A N/A np random randn 5 astype N/A config floatX N/A vb N/A N/A N/A ae visbias get_value N/A d N/A N/A tensor matrix N/A result N/A N/A np cos N/A N/A N/A np dot N/A N/A np tanh N/A hb N/A N/A np dot data w w_prime vb N/A ff N/A N/A theano function N/A d N/A N/A ae reconstruct d N/A N/A _allclose N/A ff data result N/A test_high_order_autoencoder_init N/A N/A N/A N/A N/A 
    Just test that model initialize and return
    the penalty without error.
     N/A corruptor N/A BinomialCorruptor corruption_level 0.5 N/A model N/A HigherOrderContractiveAutoencoder corruptor corruptor num_corruptions 2 nvis 5 nhid 7 act_enc sigmoid act_dec sigmoid N/A X N/A N/A tensor matrix N/A data N/A N/A N/A N/A N/A np random randn 10 5 astype N/A config floatX N/A ff N/A N/A theano function N/A X N/A N/A model higher_order_penalty X N/A N/A N/A type N/A ff data N/A np ndarray N/A test_cae_basic N/A N/A N/A N/A N/A 
    Tests that we can load a contractive autoencoder
    and train it for a few epochs (without saving) on a dummy
    dataset-- tiny model and dataset
     N/A N/A open N/A N/A N/A os path join yaml_dir_path cae.yaml f N/A N/A yaml_string N/A N/A f read N/A train N/A N/A yaml_parse load yaml_string N/A N/A N/A train main_loop N/A test_hcae_basic N/A N/A N/A N/A N/A 
    Tests that we can load a higher order contractive autoencoder
    and train it for a few epochs (without saving) on a dummy
    dataset-- tiny model and dataset
     N/A N/A open N/A N/A N/A os path join yaml_dir_path hcae.yaml f N/A N/A yaml_string N/A N/A f read N/A train N/A N/A yaml_parse load yaml_string N/A N/A N/A train main_loop N/A test_untied_ae N/A N/A N/A N/A N/A 
    Tests that UntiedAutoencoder calls the Model superclass constructor
     N/A ae N/A Autoencoder 5 7 act_enc tanh act_dec cos tied_weights True N/A model N/A UntiedAutoencoder ae N/A N/A N/A model _ensure_extensions N/A test_dcae N/A N/A N/A N/A N/A 
    Tests that DeepComposedAutoencoder works correctly
     N/A ae N/A Autoencoder 5 7 act_enc tanh act_dec cos tied_weights True N/A model N/A DeepComposedAutoencoder N/A ae N/A N/A N/A model _ensure_extensions N/A data N/A N/A N/A N/A N/A np random randn 10 5 astype N/A config floatX N/A N/A N/A model perform data N/A test_sdae N/A N/A N/A N/A N/A 
    Tests that StackedDenoisingAutoencoder works correctly
     N/A data N/A N/A N/A N/A N/A N/A np random randn 10 5 astype N/A config floatX 100 N/A ae N/A Autoencoder 5 7 act_enc tanh act_dec cos tied_weights False N/A corruptor N/A BinomialCorruptor corruption_level 0.5 N/A model N/A StackedDenoisingAutoencoder N/A ae corruptor N/A N/A N/A model _ensure_extensions N/A w N/A N/A N/A ae weights get_value N/A w_prime N/A N/A N/A ae w_prime get_value N/A N/A N/A N/A ae hidbias set_value N/A N/A N/A N/A N/A np random randn 7 astype N/A config floatX N/A hb N/A N/A N/A ae hidbias get_value N/A N/A N/A N/A ae visbias set_value N/A N/A N/A N/A N/A np random randn 5 astype N/A config floatX N/A vb N/A N/A N/A ae visbias get_value N/A d N/A N/A tensor matrix N/A result N/A N/A np cos N/A N/A N/A np dot N/A N/A np tanh N/A hb N/A N/A np dot data w w_prime vb N/A ff N/A N/A theano function N/A d N/A N/A model reconstruct d N/A N/A N/A _allclose N/A ff data result N/A